From 95ae7da3dc1af3cb26055f9cb84ba6c06653c9cf Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:07:16 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../google/cloud/run/v2/RevisionsGrpc.java | 577 --- .../com/google/cloud/run/v2/ServicesGrpc.java | 1136 ------ .../google/cloud/run/v2/RevisionsClient.java | 53 +- .../cloud/run/v2/RevisionsSettings.java | 30 +- .../google/cloud/run/v2/ServicesClient.java | 53 +- .../google/cloud/run/v2/ServicesSettings.java | 30 +- .../google/cloud/run/v2/gapic_metadata.json | 0 .../com/google/cloud/run/v2/package-info.java | 0 .../v2/stub/GrpcRevisionsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcRevisionsStub.java | 1 + .../v2/stub/GrpcServicesCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcServicesStub.java | 1 + .../HttpJsonRevisionsCallableFactory.java | 105 + .../run/v2/stub/HttpJsonRevisionsStub.java | 340 ++ .../stub/HttpJsonServicesCallableFactory.java | 105 + .../run/v2/stub/HttpJsonServicesStub.java | 642 ++++ .../cloud/run/v2/stub/RevisionsStub.java | 6 +- .../run/v2/stub/RevisionsStubSettings.java | 58 +- .../cloud/run/v2/stub/ServicesStub.java | 6 +- .../run/v2/stub/ServicesStubSettings.java | 58 +- .../google/cloud/run/v2/MockRevisions.java | 0 .../cloud/run/v2/MockRevisionsImpl.java | 0 .../com/google/cloud/run/v2/MockServices.java | 0 .../google/cloud/run/v2/MockServicesImpl.java | 0 .../run/v2/RevisionsClientHttpJsonTest.java | 474 +++ .../cloud/run/v2/RevisionsClientTest.java | 0 .../run/v2/ServicesClientHttpJsonTest.java | 963 +++++ .../cloud/run/v2/ServicesClientTest.java | 0 .../google/cloud/run/v2/RevisionsGrpc.java | 475 +++ .../com/google/cloud/run/v2/ServicesGrpc.java | 925 +++++ .../cloud/run/v2/BinaryAuthorization.java | 391 +- .../run/v2/BinaryAuthorizationOrBuilder.java | 33 +- .../google/cloud/run/v2/CloudSqlInstance.java | 330 +- .../run/v2/CloudSqlInstanceOrBuilder.java | 36 +- .../com/google/cloud/run/v2/Condition.java | 1344 +++---- .../cloud/run/v2/ConditionOrBuilder.java | 83 +- .../google/cloud/run/v2/ConditionProto.java | 90 + .../com/google/cloud/run/v2/Container.java | 1144 ++---- .../cloud/run/v2/ContainerOrBuilder.java | 136 +- .../google/cloud/run/v2/ContainerPort.java | 331 +- .../cloud/run/v2/ContainerPortOrBuilder.java | 30 +- .../cloud/run/v2/CreateServiceRequest.java | 569 ++- .../run/v2/CreateServiceRequestOrBuilder.java | 64 +- .../cloud/run/v2/DeleteRevisionRequest.java | 445 +-- .../v2/DeleteRevisionRequestOrBuilder.java | 47 +- .../cloud/run/v2/DeleteServiceRequest.java | 445 +-- .../run/v2/DeleteServiceRequestOrBuilder.java | 47 +- .../java/com/google/cloud/run/v2/EnvVar.java | 536 ++- .../google/cloud/run/v2/EnvVarOrBuilder.java | 47 +- .../com/google/cloud/run/v2/EnvVarSource.java | 318 +- .../cloud/run/v2/EnvVarSourceOrBuilder.java | 26 +- .../cloud/run/v2/ExecutionEnvironment.java | 77 +- .../cloud/run/v2/GetRevisionRequest.java | 329 +- .../run/v2/GetRevisionRequestOrBuilder.java | 33 + .../cloud/run/v2/GetServiceRequest.java | 329 +- .../run/v2/GetServiceRequestOrBuilder.java | 31 + .../google/cloud/run/v2/IngressTraffic.java | 89 +- .../com/google/cloud/run/v2/K8sMinProto.java | 226 ++ .../cloud/run/v2/ListRevisionsRequest.java | 479 +-- .../run/v2/ListRevisionsRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListRevisionsResponse.java | 448 +-- .../v2/ListRevisionsResponseOrBuilder.java | 46 +- .../cloud/run/v2/ListServicesRequest.java | 479 +-- .../run/v2/ListServicesRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListServicesResponse.java | 454 +-- .../run/v2/ListServicesResponseOrBuilder.java | 46 +- .../com/google/cloud/run/v2/LocationName.java | 0 .../cloud/run/v2/ResourceRequirements.java | 526 ++- .../run/v2/ResourceRequirementsOrBuilder.java | 52 +- .../com/google/cloud/run/v2/Revision.java | 2945 ++++++-------- .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 344 +- .../google/cloud/run/v2/RevisionProto.java | 226 ++ .../google/cloud/run/v2/RevisionScaling.java | 290 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1648 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 178 +- .../cloud/run/v2/RevisionTemplateProto.java | 108 + .../cloud/run/v2/SecretKeySelector.java | 408 +- .../run/v2/SecretKeySelectorOrBuilder.java | 44 +- .../cloud/run/v2/SecretVolumeSource.java | 483 +-- .../run/v2/SecretVolumeSourceOrBuilder.java | 49 +- .../java/com/google/cloud/run/v2/Service.java | 3423 ++++++----------- .../com/google/cloud/run/v2/ServiceName.java | 0 .../google/cloud/run/v2/ServiceOrBuilder.java | 427 +- .../com/google/cloud/run/v2/ServiceProto.java | 287 ++ .../google/cloud/run/v2/TrafficTarget.java | 484 +-- .../run/v2/TrafficTargetAllocationType.java | 77 +- .../cloud/run/v2/TrafficTargetOrBuilder.java | 45 +- .../cloud/run/v2/TrafficTargetProto.java | 81 + .../cloud/run/v2/TrafficTargetStatus.java | 567 ++- .../run/v2/TrafficTargetStatusOrBuilder.java | 54 +- .../cloud/run/v2/UpdateServiceRequest.java | 423 +- .../run/v2/UpdateServiceRequestOrBuilder.java | 41 +- .../cloud/run/v2/VendorSettingsProto.java | 96 + .../google/cloud/run/v2/VersionToPath.java | 410 +- .../cloud/run/v2/VersionToPathOrBuilder.java | 39 +- .../java/com/google/cloud/run/v2/Volume.java | 543 +-- .../com/google/cloud/run/v2/VolumeMount.java | 373 +- .../cloud/run/v2/VolumeMountOrBuilder.java | 36 +- .../google/cloud/run/v2/VolumeOrBuilder.java | 43 +- .../com/google/cloud/run/v2/VpcAccess.java | 414 +- .../cloud/run/v2/VpcAccessOrBuilder.java | 33 +- .../proto/google/cloud/run/v2/condition.proto | 0 .../proto/google/cloud/run/v2/k8s.min.proto | 0 .../proto/google/cloud/run/v2/revision.proto | 0 .../cloud/run/v2/revision_template.proto | 0 .../proto/google/cloud/run/v2/service.proto | 0 .../google/cloud/run/v2/traffic_target.proto | 0 .../google/cloud/run/v2/vendor_settings.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../deleterevision/AsyncDeleteRevision.java | 49 + .../AsyncDeleteRevisionLRO.java | 50 + .../deleterevision/SyncDeleteRevision.java | 46 + .../SyncDeleteRevisionRevisionname.java | 39 + .../SyncDeleteRevisionString.java | 40 + .../getrevision/AsyncGetRevision.java | 47 + .../getrevision/SyncGetRevision.java | 44 + .../SyncGetRevisionRevisionname.java | 39 + .../getrevision/SyncGetRevisionString.java | 40 + .../listrevisions/AsyncListRevisions.java | 51 + .../AsyncListRevisionsPaged.java | 59 + .../listrevisions/SyncListRevisions.java | 48 + .../SyncListRevisionsServicename.java | 41 + .../SyncListRevisionsString.java | 41 + .../getrevision/SyncGetRevision.java | 45 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../createservice/AsyncCreateService.java | 50 + .../createservice/AsyncCreateServiceLRO.java | 50 + .../createservice/SyncCreateService.java | 46 + ...reateServiceLocationnameServiceString.java | 41 + .../SyncCreateServiceStringServiceString.java | 41 + .../deleteservice/AsyncDeleteService.java | 48 + .../deleteservice/AsyncDeleteServiceLRO.java | 49 + .../deleteservice/SyncDeleteService.java | 45 + .../SyncDeleteServiceServicename.java | 39 + .../SyncDeleteServiceString.java | 39 + .../getiampolicy/AsyncGetIamPolicy.java | 48 + .../getiampolicy/SyncGetIamPolicy.java | 45 + .../getservice/AsyncGetService.java | 46 + .../getservice/SyncGetService.java | 43 + .../getservice/SyncGetServiceServicename.java | 39 + .../getservice/SyncGetServiceString.java | 39 + .../listservices/AsyncListServices.java | 51 + .../listservices/AsyncListServicesPaged.java | 59 + .../listservices/SyncListServices.java | 48 + .../SyncListServicesLocationname.java | 41 + .../listservices/SyncListServicesString.java | 41 + .../setiampolicy/AsyncSetIamPolicy.java | 49 + .../setiampolicy/SyncSetIamPolicy.java | 46 + .../AsyncTestIamPermissions.java | 49 + .../SyncTestIamPermissions.java | 45 + .../updateservice/AsyncUpdateService.java | 48 + .../updateservice/AsyncUpdateServiceLRO.java | 48 + .../updateservice/SyncUpdateService.java | 44 + .../SyncUpdateServiceService.java | 38 + .../getservice/SyncGetService.java | 45 + .../getrevision/SyncGetRevision.java | 45 + .../getservice/SyncGetService.java | 45 + .../google/cloud/run/v2/ConditionProto.java | 113 - .../run/v2/GetRevisionRequestOrBuilder.java | 58 - .../run/v2/GetServiceRequestOrBuilder.java | 56 - .../com/google/cloud/run/v2/K8sMinProto.java | 252 -- .../google/cloud/run/v2/RevisionProto.java | 271 -- .../cloud/run/v2/RevisionTemplateProto.java | 136 - .../com/google/cloud/run/v2/ServiceProto.java | 337 -- .../cloud/run/v2/TrafficTargetProto.java | 97 - .../cloud/run/v2/VendorSettingsProto.java | 113 - 172 files changed, 16647 insertions(+), 18070 deletions(-) delete mode 100644 grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java delete mode 100644 grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (92%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java (88%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesClient.java (95%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesSettings.java (91%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/gapic_metadata.json (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/package-info.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java (99%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java (99%) create mode 100644 owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java create mode 100644 owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java (94%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java (87%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java (96%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java (92%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockRevisions.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockServices.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java (100%) create mode 100644 owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java (100%) create mode 100644 owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java (100%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java (73%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java (74%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Condition.java (76%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java (84%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Container.java (81%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java (88%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerPort.java (71%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java (56%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java (64%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java (57%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java (56%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVar.java (74%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java (80%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarSource.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java (61%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/IngressTraffic.java (68%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java (61%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java (74%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java (65%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java (60%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java (73%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java (65%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/LocationName.java (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java (66%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Revision.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionName.java (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java (81%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionScaling.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java (51%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java (80%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java (57%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java (80%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java (83%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Service.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ServiceName.java (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java (80%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTarget.java (71%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java (70%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java (69%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java (71%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java (68%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java (71%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VersionToPath.java (74%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Volume.java (73%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeMount.java (73%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java (69%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java (78%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VpcAccess.java (72%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java (63%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/condition.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/k8s.min.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/revision.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/revision_template.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/service.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/traffic_target.proto (100%) rename {proto-google-cloud-run-v2 => owl-bot-staging/v2/proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/vendor_settings.proto (100%) create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java delete mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java diff --git a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java deleted file mode 100644 index 287d926..0000000 --- a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java +++ /dev/null @@ -1,577 +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.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Run Revision Control Plane API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/revision.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RevisionsGrpc { - - private RevisionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Revisions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> - getGetRevisionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRevision", - requestType = com.google.cloud.run.v2.GetRevisionRequest.class, - responseType = com.google.cloud.run.v2.Revision.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> - getGetRevisionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> - getGetRevisionMethod; - if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { - RevisionsGrpc.getGetRevisionMethod = - getGetRevisionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRevision")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetRevisionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Revision.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("GetRevision")) - .build(); - } - } - } - return getGetRevisionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListRevisionsRequest, - com.google.cloud.run.v2.ListRevisionsResponse> - getListRevisionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRevisions", - requestType = com.google.cloud.run.v2.ListRevisionsRequest.class, - responseType = com.google.cloud.run.v2.ListRevisionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListRevisionsRequest, - com.google.cloud.run.v2.ListRevisionsResponse> - getListRevisionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListRevisionsRequest, - com.google.cloud.run.v2.ListRevisionsResponse> - getListRevisionsMethod; - if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { - RevisionsGrpc.getListRevisionsMethod = - getListRevisionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRevisions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListRevisionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListRevisionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("ListRevisions")) - .build(); - } - } - } - return getListRevisionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> - getDeleteRevisionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRevision", - requestType = com.google.cloud.run.v2.DeleteRevisionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> - getDeleteRevisionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> - getDeleteRevisionMethod; - if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { - RevisionsGrpc.getDeleteRevisionMethod = - getDeleteRevisionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRevision")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteRevisionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("DeleteRevision")) - .build(); - } - } - } - return getDeleteRevisionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static RevisionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsStub(channel, callOptions); - } - }; - return RevisionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RevisionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsBlockingStub(channel, callOptions); - } - }; - return RevisionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RevisionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsFutureStub(channel, callOptions); - } - }; - return RevisionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public abstract static class RevisionsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Gets information about a Revision.
-     * 
- */ - public void getRevision( - com.google.cloud.run.v2.GetRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRevisionMethod(), responseObserver); - } - - /** - * - * - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public void listRevisions( - com.google.cloud.run.v2.ListRevisionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRevisionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a Revision.
-     * 
- */ - public void deleteRevision( - com.google.cloud.run.v2.DeleteRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRevisionMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision>( - this, METHODID_GET_REVISION))) - .addMethod( - getListRevisionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListRevisionsRequest, - com.google.cloud.run.v2.ListRevisionsResponse>( - this, METHODID_LIST_REVISIONS))) - .addMethod( - getDeleteRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteRevisionRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REVISION))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsStub extends io.grpc.stub.AbstractAsyncStub { - private RevisionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets information about a Revision.
-     * 
- */ - public void getRevision( - com.google.cloud.run.v2.GetRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRevisionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public void listRevisions( - com.google.cloud.run.v2.ListRevisionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRevisionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a Revision.
-     * 
- */ - public void deleteRevision( - com.google.cloud.run.v2.DeleteRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RevisionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets information about a Revision.
-     * 
- */ - public com.google.cloud.run.v2.Revision getRevision( - com.google.cloud.run.v2.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRevisionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public com.google.cloud.run.v2.ListRevisionsResponse listRevisions( - com.google.cloud.run.v2.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRevisionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a Revision.
-     * 
- */ - public com.google.longrunning.Operation deleteRevision( - com.google.cloud.run.v2.DeleteRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRevisionMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RevisionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets information about a Revision.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRevision(com.google.cloud.run.v2.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.run.v2.ListRevisionsResponse> - listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a Revision.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_REVISION = 0; - private static final int METHODID_LIST_REVISIONS = 1; - private static final int METHODID_DELETE_REVISION = 2; - - 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 RevisionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(RevisionsImplBase 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_REVISION: - serviceImpl.getRevision( - (com.google.cloud.run.v2.GetRevisionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REVISIONS: - serviceImpl.listRevisions( - (com.google.cloud.run.v2.ListRevisionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_REVISION: - serviceImpl.deleteRevision( - (com.google.cloud.run.v2.DeleteRevisionRequest) 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 RevisionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RevisionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.RevisionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Revisions"); - } - } - - private static final class RevisionsFileDescriptorSupplier - extends RevisionsBaseDescriptorSupplier { - RevisionsFileDescriptorSupplier() {} - } - - private static final class RevisionsMethodDescriptorSupplier - extends RevisionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - RevisionsMethodDescriptorSupplier(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 (RevisionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RevisionsFileDescriptorSupplier()) - .addMethod(getGetRevisionMethod()) - .addMethod(getListRevisionsMethod()) - .addMethod(getDeleteRevisionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java deleted file mode 100644 index fe875c8..0000000 --- a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java +++ /dev/null @@ -1,1136 +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.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Run Service Control Plane API
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServicesGrpc { - - private ServicesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Services"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> - getCreateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateService", - requestType = com.google.cloud.run.v2.CreateServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> - getCreateServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> - getCreateServiceMethod; - if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { - ServicesGrpc.getCreateServiceMethod = - getCreateServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.CreateServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("CreateService")) - .build(); - } - } - } - return getCreateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> - getGetServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetService", - requestType = com.google.cloud.run.v2.GetServiceRequest.class, - responseType = com.google.cloud.run.v2.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> - getGetServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> - getGetServiceMethod; - if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { - ServicesGrpc.getGetServiceMethod = - getGetServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Service.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("GetService")) - .build(); - } - } - } - return getGetServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListServicesRequest, com.google.cloud.run.v2.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.run.v2.ListServicesRequest.class, - responseType = com.google.cloud.run.v2.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListServicesRequest, com.google.cloud.run.v2.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.ListServicesRequest, - com.google.cloud.run.v2.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { - ServicesGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListServicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("ListServices")) - .build(); - } - } - } - return getListServicesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> - getUpdateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateService", - requestType = com.google.cloud.run.v2.UpdateServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> - getUpdateServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> - getUpdateServiceMethod; - if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { - ServicesGrpc.getUpdateServiceMethod = - getUpdateServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.UpdateServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("UpdateService")) - .build(); - } - } - } - return getUpdateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> - getDeleteServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteService", - requestType = com.google.cloud.run.v2.DeleteServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> - getDeleteServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> - getDeleteServiceMethod; - if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { - ServicesGrpc.getDeleteServiceMethod = - getDeleteServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("DeleteService")) - .build(); - } - } - } - return getDeleteServiceMethod; - } - - 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< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - 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< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - 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< - 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 = ServicesGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ServicesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesStub(channel, callOptions); - } - }; - return ServicesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServicesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesBlockingStub(channel, callOptions); - } - }; - return ServicesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ServicesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesFutureStub(channel, callOptions); - } - }; - return ServicesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public abstract static class ServicesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public void createService( - com.google.cloud.run.v2.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a Service.
-     * 
- */ - public void getService( - com.google.cloud.run.v2.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * List Services.
-     * 
- */ - public void listServices( - com.google.cloud.run.v2.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServicesMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a Service.
-     * 
- */ - public void updateService( - com.google.cloud.run.v2.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public void deleteService( - com.google.cloud.run.v2.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.CreateServiceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SERVICE))) - .addMethod( - getGetServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service>( - this, METHODID_GET_SERVICE))) - .addMethod( - getListServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListServicesRequest, - com.google.cloud.run.v2.ListServicesResponse>(this, METHODID_LIST_SERVICES))) - .addMethod( - getUpdateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.UpdateServiceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SERVICE))) - .addMethod( - getDeleteServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteServiceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SERVICE))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_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))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesStub extends io.grpc.stub.AbstractAsyncStub { - private ServicesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public void createService( - com.google.cloud.run.v2.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a Service.
-     * 
- */ - public void getService( - com.google.cloud.run.v2.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Services.
-     * 
- */ - public void listServices( - com.google.cloud.run.v2.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a Service.
-     * 
- */ - public void updateService( - com.google.cloud.run.v2.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public void deleteService( - com.google.cloud.run.v2.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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); - } - } - - /** - * - * - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ServicesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createService( - com.google.cloud.run.v2.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a Service.
-     * 
- */ - public com.google.cloud.run.v2.Service getService( - com.google.cloud.run.v2.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Services.
-     * 
- */ - public com.google.cloud.run.v2.ListServicesResponse listServices( - com.google.cloud.run.v2.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a Service.
-     * 
- */ - public com.google.longrunning.Operation updateService( - com.google.cloud.run.v2.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public com.google.longrunning.Operation deleteService( - com.google.cloud.run.v2.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ServicesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createService(com.google.cloud.run.v2.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a Service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getService(com.google.cloud.run.v2.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Services.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.run.v2.ListServicesResponse> - listServices(com.google.cloud.run.v2.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a Service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateService(com.google.cloud.run.v2.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteService(com.google.cloud.run.v2.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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); - } - } - - private static final int METHODID_CREATE_SERVICE = 0; - private static final int METHODID_GET_SERVICE = 1; - private static final int METHODID_LIST_SERVICES = 2; - private static final int METHODID_UPDATE_SERVICE = 3; - private static final int METHODID_DELETE_SERVICE = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 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 ServicesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ServicesImplBase 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_CREATE_SERVICE: - serviceImpl.createService( - (com.google.cloud.run.v2.CreateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE: - serviceImpl.getService( - (com.google.cloud.run.v2.GetServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICES: - serviceImpl.listServices( - (com.google.cloud.run.v2.ListServicesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SERVICE: - serviceImpl.updateService( - (com.google.cloud.run.v2.UpdateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE: - serviceImpl.deleteService( - (com.google.cloud.run.v2.DeleteServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) 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); - 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 ServicesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServicesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Services"); - } - } - - private static final class ServicesFileDescriptorSupplier extends ServicesBaseDescriptorSupplier { - ServicesFileDescriptorSupplier() {} - } - - private static final class ServicesMethodDescriptorSupplier extends ServicesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServicesMethodDescriptorSupplier(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 (ServicesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServicesFileDescriptorSupplier()) - .addMethod(getCreateServiceMethod()) - .addMethod(getGetServiceMethod()) - .addMethod(getListServicesMethod()) - .addMethod(getUpdateServiceMethod()) - .addMethod(getDeleteServiceMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java similarity index 92% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java index a2f96dc..5111f09 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; 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; @@ -30,7 +31,6 @@ import com.google.cloud.run.v2.stub.RevisionsStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -59,13 +59,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. *
* @@ -100,13 +100,28 @@ * RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); * } * + *

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.
+ * RevisionsSettings revisionsSettings =
+ *     RevisionsSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             RevisionsSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class RevisionsClient implements BackgroundResource { private final RevisionsSettings settings; private final RevisionsStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of RevisionsClient with default settings. */ public static final RevisionsClient create() throws IOException { @@ -136,13 +151,17 @@ public static final RevisionsClient create(RevisionsStub stub) { protected RevisionsClient(RevisionsSettings settings) throws IOException { this.settings = settings; this.stub = ((RevisionsStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected RevisionsClient(RevisionsStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final RevisionsSettings getSettings() { @@ -157,10 +176,18 @@ public RevisionsStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + 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. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets information about a Revision. @@ -582,10 +609,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListRevisionsPagedResponse extends AbstractPagedListResponse< - ListRevisionsRequest, - ListRevisionsResponse, - Revision, - ListRevisionsPage, + ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage, ListRevisionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -635,10 +659,7 @@ public ApiFuture createPageAsync( public static class ListRevisionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListRevisionsRequest, - ListRevisionsResponse, - Revision, - ListRevisionsPage, + ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage, ListRevisionsFixedSizeCollection> { private ListRevisionsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java similarity index 88% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index 2b6cfcf..906f8ff 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java @@ -23,11 +23,13 @@ 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.run.v2.stub.RevisionsStubSettings; @@ -43,9 +45,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 @@ -118,11 +120,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return RevisionsStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return RevisionsStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RevisionsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return RevisionsStubSettings.defaultTransportChannelProvider(); } @@ -132,11 +141,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return RevisionsStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** 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); @@ -174,6 +189,11 @@ private static Builder createDefault() { return new Builder(RevisionsStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(RevisionsStubSettings.newHttpJsonBuilder()); + } + public RevisionsStubSettings.Builder getStubSettingsBuilder() { return ((RevisionsStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java similarity index 95% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 0b771f6..12826d9 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; 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; @@ -35,7 +36,6 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -64,13 +64,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. *
* @@ -105,13 +105,28 @@ * ServicesClient servicesClient = ServicesClient.create(servicesSettings); * } * + *

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.
+ * ServicesSettings servicesSettings =
+ *     ServicesSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ServicesSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ServicesClient servicesClient = ServicesClient.create(servicesSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class ServicesClient implements BackgroundResource { private final ServicesSettings settings; private final ServicesStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of ServicesClient with default settings. */ public static final ServicesClient create() throws IOException { @@ -141,13 +156,17 @@ public static final ServicesClient create(ServicesStub stub) { protected ServicesClient(ServicesSettings settings) throws IOException { this.settings = settings; this.stub = ((ServicesStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected ServicesClient(ServicesStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final ServicesSettings getSettings() { @@ -162,10 +181,18 @@ public ServicesStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + 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. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new Service in a given project and location. @@ -1005,10 +1032,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListServicesPagedResponse extends AbstractPagedListResponse< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, + ListServicesRequest, ListServicesResponse, Service, ListServicesPage, ListServicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1057,10 +1081,7 @@ public ApiFuture createPageAsync( public static class ListServicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, + ListServicesRequest, ListServicesResponse, Service, ListServicesPage, ListServicesFixedSizeCollection> { private ListServicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java similarity index 91% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index 569d60e..60d5c94 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java @@ -23,11 +23,13 @@ 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.run.v2.stub.ServicesStubSettings; @@ -48,9 +50,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 @@ -161,11 +163,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ServicesStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return ServicesStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ServicesStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ServicesStubSettings.defaultTransportChannelProvider(); } @@ -175,11 +184,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ServicesStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** 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); @@ -217,6 +232,11 @@ private static Builder createDefault() { return new Builder(ServicesStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ServicesStubSettings.newHttpJsonBuilder()); + } + public ServicesStubSettings.Builder getStubSettingsBuilder() { return ((ServicesStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json similarity index 100% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java similarity index 100% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java similarity index 100% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java similarity index 99% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java index 6f89f0c..8369429 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java @@ -37,6 +37,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-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java similarity index 100% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java similarity index 99% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java index f2fe4eb..0133af0 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java @@ -45,6 +45,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/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java new file mode 100644 index 0000000..aea8d91 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.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.run.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 Revisions service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonRevisionsCallableFactory + 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-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java new file mode 100644 index 0000000..3f9e872 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java @@ -0,0 +1,340 @@ +/* + * 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.run.v2.stub; + +import static com.google.cloud.run.v2.RevisionsClient.ListRevisionsPagedResponse; + +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.run.v2.DeleteRevisionRequest; +import com.google.cloud.run.v2.GetRevisionRequest; +import com.google.cloud.run.v2.ListRevisionsRequest; +import com.google.cloud.run.v2.ListRevisionsResponse; +import com.google.cloud.run.v2.Revision; +import com.google.longrunning.Operation; +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 Revisions service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonRevisionsStub extends RevisionsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Revision.getDescriptor()).build(); + + private static final ApiMethodDescriptor + getRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Revisions/GetRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/services/*/revisions/*}", + 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(Revision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRevisionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Revisions/ListRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/services/*}/revisions", + 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, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Revisions/DeleteRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/services/*/revisions/*}", + 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(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteRevisionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getRevisionCallable; + private final UnaryCallable listRevisionsCallable; + private final UnaryCallable + listRevisionsPagedCallable; + private final UnaryCallable deleteRevisionCallable; + private final OperationCallable + deleteRevisionOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonRevisionsStub create(RevisionsStubSettings settings) + throws IOException { + return new HttpJsonRevisionsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRevisionsStub create(ClientContext clientContext) throws IOException { + return new HttpJsonRevisionsStub( + RevisionsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonRevisionsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRevisionsStub( + RevisionsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonRevisionsStub, 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 HttpJsonRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonRevisionsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRevisionsStub, 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 HttpJsonRevisionsStub( + RevisionsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings getRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listRevisionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getRevisionCallable = + callableFactory.createUnaryCallable( + getRevisionTransportSettings, settings.getRevisionSettings(), clientContext); + this.listRevisionsCallable = + callableFactory.createUnaryCallable( + listRevisionsTransportSettings, settings.listRevisionsSettings(), clientContext); + this.listRevisionsPagedCallable = + callableFactory.createPagedCallable( + listRevisionsTransportSettings, settings.listRevisionsSettings(), clientContext); + this.deleteRevisionCallable = + callableFactory.createUnaryCallable( + deleteRevisionTransportSettings, settings.deleteRevisionSettings(), clientContext); + this.deleteRevisionOperationCallable = + callableFactory.createOperationCallable( + deleteRevisionTransportSettings, + settings.deleteRevisionOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getRevisionMethodDescriptor); + methodDescriptors.add(listRevisionsMethodDescriptor); + methodDescriptors.add(deleteRevisionMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getRevisionCallable() { + return getRevisionCallable; + } + + @Override + public UnaryCallable listRevisionsCallable() { + return listRevisionsCallable; + } + + @Override + public UnaryCallable + listRevisionsPagedCallable() { + return listRevisionsPagedCallable; + } + + @Override + public UnaryCallable deleteRevisionCallable() { + return deleteRevisionCallable; + } + + @Override + public OperationCallable + deleteRevisionOperationCallable() { + return deleteRevisionOperationCallable; + } + + @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-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java new file mode 100644 index 0000000..50fd833 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.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.run.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 Services service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonServicesCallableFactory + 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-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java new file mode 100644 index 0000000..367ff9c --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java @@ -0,0 +1,642 @@ +/* + * 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.run.v2.stub; + +import static com.google.cloud.run.v2.ServicesClient.ListServicesPagedResponse; + +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.run.v2.CreateServiceRequest; +import com.google.cloud.run.v2.DeleteServiceRequest; +import com.google.cloud.run.v2.GetServiceRequest; +import com.google.cloud.run.v2.ListServicesRequest; +import com.google.cloud.run.v2.ListServicesResponse; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.UpdateServiceRequest; +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.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 Services service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonServicesStub extends ServicesStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Service.getDescriptor()).build(); + + private static final ApiMethodDescriptor + createServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/CreateService") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/services", + 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, "serviceId", request.getServiceId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("service", request.getService())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/GetService") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/services/*}", + 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(Service.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listServicesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/ListServices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/services", + 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, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListServicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/UpdateService") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{service.name=projects/*/locations/*/services/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "service.name", request.getService().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("service", request.getService())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/DeleteService") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/services/*}", + 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(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/services/*}: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(); + serializer.putQueryParam(fields, "options", request.getOptions()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/services/*}: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 + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Services/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/services/*}: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 createServiceCallable; + private final OperationCallable + createServiceOperationCallable; + private final UnaryCallable getServiceCallable; + private final UnaryCallable listServicesCallable; + private final UnaryCallable + listServicesPagedCallable; + private final UnaryCallable updateServiceCallable; + private final OperationCallable + updateServiceOperationCallable; + private final UnaryCallable deleteServiceCallable; + private final OperationCallable + deleteServiceOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonServicesStub create(ServicesStubSettings settings) + throws IOException { + return new HttpJsonServicesStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonServicesStub create(ClientContext clientContext) throws IOException { + return new HttpJsonServicesStub( + ServicesStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonServicesStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonServicesStub( + ServicesStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonServicesStub, 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 HttpJsonServicesStub(ServicesStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonServicesCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonServicesStub, 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 HttpJsonServicesStub( + ServicesStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listServicesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listServicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createServiceCallable = + callableFactory.createUnaryCallable( + createServiceTransportSettings, settings.createServiceSettings(), clientContext); + this.createServiceOperationCallable = + callableFactory.createOperationCallable( + createServiceTransportSettings, + settings.createServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getServiceCallable = + callableFactory.createUnaryCallable( + getServiceTransportSettings, settings.getServiceSettings(), clientContext); + this.listServicesCallable = + callableFactory.createUnaryCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.listServicesPagedCallable = + callableFactory.createPagedCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.updateServiceCallable = + callableFactory.createUnaryCallable( + updateServiceTransportSettings, settings.updateServiceSettings(), clientContext); + this.updateServiceOperationCallable = + callableFactory.createOperationCallable( + updateServiceTransportSettings, + settings.updateServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteServiceCallable = + callableFactory.createUnaryCallable( + deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext); + this.deleteServiceOperationCallable = + callableFactory.createOperationCallable( + deleteServiceTransportSettings, + settings.deleteServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), 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(createServiceMethodDescriptor); + methodDescriptors.add(getServiceMethodDescriptor); + methodDescriptors.add(listServicesMethodDescriptor); + methodDescriptors.add(updateServiceMethodDescriptor); + methodDescriptors.add(deleteServiceMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createServiceCallable() { + return createServiceCallable; + } + + @Override + public OperationCallable + createServiceOperationCallable() { + return createServiceOperationCallable; + } + + @Override + public UnaryCallable getServiceCallable() { + return getServiceCallable; + } + + @Override + public UnaryCallable listServicesCallable() { + return listServicesCallable; + } + + @Override + public UnaryCallable listServicesPagedCallable() { + return listServicesPagedCallable; + } + + @Override + public UnaryCallable updateServiceCallable() { + return updateServiceCallable; + } + + @Override + public OperationCallable + updateServiceOperationCallable() { + return updateServiceOperationCallable; + } + + @Override + public UnaryCallable deleteServiceCallable() { + return deleteServiceCallable; + } + + @Override + public OperationCallable + deleteServiceOperationCallable() { + return deleteServiceOperationCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @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/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java similarity index 94% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java index a0cb6a8..7f41e3c 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java @@ -40,7 +40,11 @@ public abstract class RevisionsStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable getRevisionCallable() { diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java similarity index 87% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java index 7caabae..0c11a0f 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java @@ -28,6 +28,9 @@ 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; @@ -66,9 +69,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 @@ -187,6 +190,11 @@ public RevisionsStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcRevisionsStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRevisionsStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -219,29 +227,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** 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 defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(RevisionsStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @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(RevisionsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RevisionsStubSettings.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); @@ -336,6 +369,19 @@ private static Builder createDefault() { 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 .getRevisionSettings() diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java similarity index 96% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java index 48ef344..8a7a3e5 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java @@ -47,7 +47,11 @@ public abstract class ServicesStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java similarity index 92% rename from google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java rename to owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java index dba2cba..bc02383 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java @@ -28,6 +28,9 @@ 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; @@ -73,9 +76,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 @@ -242,6 +245,11 @@ public ServicesStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcServicesStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonServicesStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -274,29 +282,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** 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 defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(ServicesStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @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(ServicesStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ServicesStubSettings.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); @@ -469,6 +502,19 @@ private static Builder createDefault() { 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 .createServiceSettings() diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java new file mode 100644 index 0000000..a9757ce --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java @@ -0,0 +1,474 @@ +/* + * 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.run.v2; + +import static com.google.cloud.run.v2.RevisionsClient.ListRevisionsPagedResponse; + +import com.google.api.LaunchStage; +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.run.v2.stub.HttpJsonRevisionsStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +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 RevisionsClientHttpJsonTest { + private static MockHttpService mockService; + private static RevisionsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRevisionsStub.getMethodDescriptors(), RevisionsSettings.getDefaultEndpoint()); + RevisionsSettings settings = + RevisionsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + RevisionsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RevisionsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getRevisionTest() throws Exception { + Revision expectedResponse = + Revision.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setScaling(RevisionScaling.newBuilder().build()) + .setVpcAccess(VpcAccess.newBuilder().build()) + .setMaxInstanceRequestConcurrency(117250100) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setEncryptionKey("encryptionKey-36224036") + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setLogUri("logUri-1097354360") + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + + Revision actualResponse = client.getRevision(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 getRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + client.getRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRevisionTest2() throws Exception { + Revision expectedResponse = + Revision.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setScaling(RevisionScaling.newBuilder().build()) + .setVpcAccess(VpcAccess.newBuilder().build()) + .setMaxInstanceRequestConcurrency(117250100) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setEncryptionKey("encryptionKey-36224036") + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setLogUri("logUri-1097354360") + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7778/locations/location-7778/services/service-7778/revisions/revision-7778"; + + Revision actualResponse = client.getRevision(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 getRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7778/locations/location-7778/services/service-7778/revisions/revision-7778"; + client.getRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRevisionsTest() throws Exception { + Revision responsesElement = Revision.newBuilder().build(); + ListRevisionsResponse expectedResponse = + ListRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + ListRevisionsPagedResponse pagedListResponse = client.listRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRevisionsList().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 listRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.listRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRevisionsTest2() throws Exception { + Revision responsesElement = Revision.newBuilder().build(); + ListRevisionsResponse expectedResponse = + ListRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4913/locations/location-4913/services/service-4913"; + + ListRevisionsPagedResponse pagedListResponse = client.listRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRevisionsList().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 listRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-4913/locations/location-4913/services/service-4913"; + client.listRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRevisionTest() throws Exception { + Revision expectedResponse = + Revision.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setScaling(RevisionScaling.newBuilder().build()) + .setVpcAccess(VpcAccess.newBuilder().build()) + .setMaxInstanceRequestConcurrency(117250100) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setEncryptionKey("encryptionKey-36224036") + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setLogUri("logUri-1097354360") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + + Revision actualResponse = client.deleteRevisionAsync(name).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 deleteRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + client.deleteRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteRevisionTest2() throws Exception { + Revision expectedResponse = + Revision.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setScaling(RevisionScaling.newBuilder().build()) + .setVpcAccess(VpcAccess.newBuilder().build()) + .setMaxInstanceRequestConcurrency(117250100) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setEncryptionKey("encryptionKey-36224036") + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setLogUri("logUri-1097354360") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7778/locations/location-7778/services/service-7778/revisions/revision-7778"; + + Revision actualResponse = client.deleteRevisionAsync(name).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 deleteRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7778/locations/location-7778/services/service-7778/revisions/revision-7778"; + client.deleteRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java new file mode 100644 index 0000000..2806f80 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java @@ -0,0 +1,963 @@ +/* + * 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.run.v2; + +import static com.google.cloud.run.v2.ServicesClient.ListServicesPagedResponse; + +import com.google.api.LaunchStage; +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.run.v2.stub.HttpJsonServicesStub; +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.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 ServicesClientHttpJsonTest { + private static MockHttpService mockService; + private static ServicesClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonServicesStub.getMethodDescriptors(), ServicesSettings.getDefaultEndpoint()); + ServicesSettings settings = + ServicesSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ServicesSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ServicesClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).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 createServiceExceptionTest() 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]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).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 createServiceExceptionTest2() 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"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + Service actualResponse = client.getService(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 getServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + + Service actualResponse = client.getService(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 getServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().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 listServicesExceptionTest() 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.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest2() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().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 listServicesExceptionTest2() 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.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + + Service actualResponse = client.updateServiceAsync(service).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 updateServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + client.updateServiceAsync(service).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + Service actualResponse = client.deleteServiceAsync(name).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 deleteServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.deleteServiceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + + Service actualResponse = client.deleteServiceAsync(name).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 deleteServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + client.deleteServiceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @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(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").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(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(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(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").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(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").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 testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").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(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java similarity index 100% rename from google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java rename to owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java new file mode 100644 index 0000000..f1afaa1 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java @@ -0,0 +1,475 @@ +package com.google.cloud.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Cloud Run Revision Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/revision.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RevisionsGrpc { + + private RevisionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Revisions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRevision", + requestType = com.google.cloud.run.v2.GetRevisionRequest.class, + responseType = com.google.cloud.run.v2.Revision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRevisionMethod() { + io.grpc.MethodDescriptor getGetRevisionMethod; + if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { + RevisionsGrpc.getGetRevisionMethod = getGetRevisionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Revision.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("GetRevision")) + .build(); + } + } + } + return getGetRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRevisions", + requestType = com.google.cloud.run.v2.ListRevisionsRequest.class, + responseType = com.google.cloud.run.v2.ListRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRevisionsMethod() { + io.grpc.MethodDescriptor getListRevisionsMethod; + if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { + RevisionsGrpc.getListRevisionsMethod = getListRevisionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("ListRevisions")) + .build(); + } + } + } + return getListRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRevision", + requestType = com.google.cloud.run.v2.DeleteRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRevisionMethod() { + io.grpc.MethodDescriptor getDeleteRevisionMethod; + if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { + RevisionsGrpc.getDeleteRevisionMethod = getDeleteRevisionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("DeleteRevision")) + .build(); + } + } + } + return getDeleteRevisionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static RevisionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsStub(channel, callOptions); + } + }; + return RevisionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RevisionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsBlockingStub(channel, callOptions); + } + }; + return RevisionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RevisionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsFutureStub(channel, callOptions); + } + }; + return RevisionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static abstract class RevisionsImplBase implements io.grpc.BindableService { + + /** + *
+     * Gets information about a Revision.
+     * 
+ */ + public void getRevision(com.google.cloud.run.v2.GetRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRevisionMethod(), responseObserver); + } + + /** + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public void listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRevisionsMethod(), responseObserver); + } + + /** + *
+     * Delete a Revision.
+     * 
+ */ + public void deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRevisionMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetRevisionRequest, + com.google.cloud.run.v2.Revision>( + this, METHODID_GET_REVISION))) + .addMethod( + getListRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListRevisionsRequest, + com.google.cloud.run.v2.ListRevisionsResponse>( + this, METHODID_LIST_REVISIONS))) + .addMethod( + getDeleteRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteRevisionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_REVISION))) + .build(); + } + } + + /** + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsStub extends io.grpc.stub.AbstractAsyncStub { + private RevisionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Revision.
+     * 
+ */ + public void getRevision(com.google.cloud.run.v2.GetRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public void listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a Revision.
+     * 
+ */ + public void deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private RevisionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Revision.
+     * 
+ */ + public com.google.cloud.run.v2.Revision getRevision(com.google.cloud.run.v2.GetRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRevisionMethod(), getCallOptions(), request); + } + + /** + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public com.google.cloud.run.v2.ListRevisionsResponse listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRevisionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a Revision.
+     * 
+ */ + public com.google.longrunning.Operation deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRevisionMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsFutureStub extends io.grpc.stub.AbstractFutureStub { + private RevisionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsFutureStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRevision( + com.google.cloud.run.v2.GetRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request); + } + + /** + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRevisions( + com.google.cloud.run.v2.ListRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a Revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRevision( + com.google.cloud.run.v2.DeleteRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_REVISION = 0; + private static final int METHODID_LIST_REVISIONS = 1; + private static final int METHODID_DELETE_REVISION = 2; + + 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 RevisionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(RevisionsImplBase 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_REVISION: + serviceImpl.getRevision((com.google.cloud.run.v2.GetRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_REVISIONS: + serviceImpl.listRevisions((com.google.cloud.run.v2.ListRevisionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_REVISION: + serviceImpl.deleteRevision((com.google.cloud.run.v2.DeleteRevisionRequest) 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 RevisionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RevisionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.RevisionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Revisions"); + } + } + + private static final class RevisionsFileDescriptorSupplier + extends RevisionsBaseDescriptorSupplier { + RevisionsFileDescriptorSupplier() {} + } + + private static final class RevisionsMethodDescriptorSupplier + extends RevisionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + RevisionsMethodDescriptorSupplier(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 (RevisionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RevisionsFileDescriptorSupplier()) + .addMethod(getGetRevisionMethod()) + .addMethod(getListRevisionsMethod()) + .addMethod(getDeleteRevisionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java new file mode 100644 index 0000000..1d320c9 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java @@ -0,0 +1,925 @@ +package com.google.cloud.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Cloud Run Service Control Plane API
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServicesGrpc { + + private ServicesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Services"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateService", + requestType = com.google.cloud.run.v2.CreateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServiceMethod() { + io.grpc.MethodDescriptor getCreateServiceMethod; + if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { + ServicesGrpc.getCreateServiceMethod = getCreateServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.CreateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("CreateService")) + .build(); + } + } + } + return getCreateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetService", + requestType = com.google.cloud.run.v2.GetServiceRequest.class, + responseType = com.google.cloud.run.v2.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServiceMethod() { + io.grpc.MethodDescriptor getGetServiceMethod; + if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { + ServicesGrpc.getGetServiceMethod = getGetServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Service.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("GetService")) + .build(); + } + } + } + return getGetServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServices", + requestType = com.google.cloud.run.v2.ListServicesRequest.class, + responseType = com.google.cloud.run.v2.ListServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListServicesMethod() { + io.grpc.MethodDescriptor getListServicesMethod; + if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { + ServicesGrpc.getListServicesMethod = getListServicesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListServicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("ListServices")) + .build(); + } + } + } + return getListServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateService", + requestType = com.google.cloud.run.v2.UpdateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateServiceMethod() { + io.grpc.MethodDescriptor getUpdateServiceMethod; + if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { + ServicesGrpc.getUpdateServiceMethod = getUpdateServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.UpdateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("UpdateService")) + .build(); + } + } + } + return getUpdateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteService", + requestType = com.google.cloud.run.v2.DeleteServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteServiceMethod() { + io.grpc.MethodDescriptor getDeleteServiceMethod; + if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { + ServicesGrpc.getDeleteServiceMethod = getDeleteServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("DeleteService")) + .build(); + } + } + } + return getDeleteServiceMethod; + } + + 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 getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + 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 getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + 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 getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ServicesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesStub(channel, callOptions); + } + }; + return ServicesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServicesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesBlockingStub(channel, callOptions); + } + }; + return ServicesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ServicesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesFutureStub(channel, callOptions); + } + }; + return ServicesFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static abstract class ServicesImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public void createService(com.google.cloud.run.v2.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); + } + + /** + *
+     * Gets information about a Service.
+     * 
+ */ + public void getService(com.google.cloud.run.v2.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + *
+     * List Services.
+     * 
+ */ + public void listServices(com.google.cloud.run.v2.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); + } + + /** + *
+     * Updates a Service.
+     * 
+ */ + public void updateService(com.google.cloud.run.v2.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); + } + + /** + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public void deleteService(com.google.cloud.run.v2.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.CreateServiceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SERVICE))) + .addMethod( + getGetServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetServiceRequest, + com.google.cloud.run.v2.Service>( + this, METHODID_GET_SERVICE))) + .addMethod( + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListServicesRequest, + com.google.cloud.run.v2.ListServicesResponse>( + this, METHODID_LIST_SERVICES))) + .addMethod( + getUpdateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.UpdateServiceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SERVICE))) + .addMethod( + getDeleteServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteServiceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SERVICE))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_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))) + .build(); + } + } + + /** + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesStub extends io.grpc.stub.AbstractAsyncStub { + private ServicesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesStub(channel, callOptions); + } + + /** + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public void createService(com.google.cloud.run.v2.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets information about a Service.
+     * 
+ */ + public void getService(com.google.cloud.run.v2.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Services.
+     * 
+ */ + public void listServices(com.google.cloud.run.v2.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Service.
+     * 
+ */ + public void updateService(com.google.cloud.run.v2.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public void deleteService(com.google.cloud.run.v2.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + 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); + } + + /** + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + 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); + } + + /** + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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); + } + } + + /** + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ServicesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createService(com.google.cloud.run.v2.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets information about a Service.
+     * 
+ */ + public com.google.cloud.run.v2.Service getService(com.google.cloud.run.v2.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * List Services.
+     * 
+ */ + public com.google.cloud.run.v2.ListServicesResponse listServices(com.google.cloud.run.v2.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Service.
+     * 
+ */ + public com.google.longrunning.Operation updateService(com.google.cloud.run.v2.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public com.google.longrunning.Operation deleteService(com.google.cloud.run.v2.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesFutureStub extends io.grpc.stub.AbstractFutureStub { + private ServicesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createService( + com.google.cloud.run.v2.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets information about a Service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getService( + com.google.cloud.run.v2.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * List Services.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listServices( + com.google.cloud.run.v2.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateService( + com.google.cloud.run.v2.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteService( + com.google.cloud.run.v2.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + 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); + } + + /** + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + 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); + } + + /** + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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); + } + } + + private static final int METHODID_CREATE_SERVICE = 0; + private static final int METHODID_GET_SERVICE = 1; + private static final int METHODID_LIST_SERVICES = 2; + private static final int METHODID_UPDATE_SERVICE = 3; + private static final int METHODID_DELETE_SERVICE = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 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 ServicesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ServicesImplBase 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_CREATE_SERVICE: + serviceImpl.createService((com.google.cloud.run.v2.CreateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVICE: + serviceImpl.getService((com.google.cloud.run.v2.GetServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVICES: + serviceImpl.listServices((com.google.cloud.run.v2.ListServicesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVICE: + serviceImpl.updateService((com.google.cloud.run.v2.UpdateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE: + serviceImpl.deleteService((com.google.cloud.run.v2.DeleteServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) 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); + 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 ServicesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServicesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Services"); + } + } + + private static final class ServicesFileDescriptorSupplier + extends ServicesBaseDescriptorSupplier { + ServicesFileDescriptorSupplier() {} + } + + private static final class ServicesMethodDescriptorSupplier + extends ServicesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ServicesMethodDescriptorSupplier(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 (ServicesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServicesFileDescriptorSupplier()) + .addMethod(getCreateServiceMethod()) + .addMethod(getGetServiceMethod()) + .addMethod(getListServicesMethod()) + .addMethod(getUpdateServiceMethod()) + .addMethod(getDeleteServiceMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java similarity index 73% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java index deb4030..496bd28 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** - * - * *
  * Settings for Binary Authorization feature.
  * 
* * Protobuf type {@code google.cloud.run.v2.BinaryAuthorization} */ -public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinaryAuthorization extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.BinaryAuthorization) BinaryAuthorizationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinaryAuthorization.newBuilder() to construct. private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinaryAuthorization() { breakglassJustification_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinaryAuthorization(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinaryAuthorization( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,26 +53,24 @@ private BinaryAuthorization( case 0: done = true; break; - case 8: - { - binauthzMethod_ = input.readBool(); - binauthzMethodCase_ = 1; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { + binauthzMethod_ = input.readBool(); + binauthzMethodCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - breakglassJustification_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + breakglassJustification_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,39 +78,34 @@ private BinaryAuthorization( } 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.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.BinaryAuthorization.class, - com.google.cloud.run.v2.BinaryAuthorization.Builder.class); + com.google.cloud.run.v2.BinaryAuthorization.class, com.google.cloud.run.v2.BinaryAuthorization.Builder.class); } private int binauthzMethodCase_ = 0; private java.lang.Object binauthzMethod_; - public enum BinauthzMethodCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USE_DEFAULT(1), BINAUTHZMETHOD_NOT_SET(0); private final int value; - private BinauthzMethodCase(int value) { this.value = value; } @@ -145,35 +121,30 @@ public static BinauthzMethodCase valueOf(int value) { public static BinauthzMethodCase forNumber(int value) { switch (value) { - case 1: - return USE_DEFAULT; - case 0: - return BINAUTHZMETHOD_NOT_SET; - default: - return null; + case 1: return USE_DEFAULT; + case 0: return BINAUTHZMETHOD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BinauthzMethodCase getBinauthzMethodCase() { - return BinauthzMethodCase.forNumber(binauthzMethodCase_); + public BinauthzMethodCase + getBinauthzMethodCase() { + return BinauthzMethodCase.forNumber( + binauthzMethodCase_); } public static final int USE_DEFAULT_FIELD_NUMBER = 1; /** - * - * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; - * * @return Whether the useDefault field is set. */ @java.lang.Override @@ -181,15 +152,12 @@ public boolean hasUseDefault() { return binauthzMethodCase_ == 1; } /** - * - * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; - * * @return The useDefault. */ @java.lang.Override @@ -203,8 +171,6 @@ public boolean getUseDefault() { public static final int BREAKGLASS_JUSTIFICATION_FIELD_NUMBER = 2; private volatile java.lang.Object breakglassJustification_; /** - * - * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -213,7 +179,6 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; - * * @return The breakglassJustification. */ @java.lang.Override @@ -222,15 +187,14 @@ public java.lang.String getBreakglassJustification() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); breakglassJustification_ = s; return s; } } /** - * - * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -239,15 +203,16 @@ public java.lang.String getBreakglassJustification() {
    * 
* * string breakglass_justification = 2; - * * @return The bytes for breakglassJustification. */ @java.lang.Override - public com.google.protobuf.ByteString getBreakglassJustificationBytes() { + public com.google.protobuf.ByteString + getBreakglassJustificationBytes() { java.lang.Object ref = breakglassJustification_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); breakglassJustification_ = b; return b; } else { @@ -256,7 +221,6 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,9 +232,11 @@ 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 (binauthzMethodCase_ == 1) { - output.writeBool(1, (boolean) ((java.lang.Boolean) binauthzMethod_)); + output.writeBool( + 1, (boolean)((java.lang.Boolean) binauthzMethod_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, breakglassJustification_); @@ -285,9 +251,9 @@ public int getSerializedSize() { size = 0; if (binauthzMethodCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, (boolean) ((java.lang.Boolean) binauthzMethod_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) binauthzMethod_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, breakglassJustification_); @@ -300,19 +266,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.run.v2.BinaryAuthorization)) { return super.equals(obj); } - com.google.cloud.run.v2.BinaryAuthorization other = - (com.google.cloud.run.v2.BinaryAuthorization) obj; + com.google.cloud.run.v2.BinaryAuthorization other = (com.google.cloud.run.v2.BinaryAuthorization) obj; - if (!getBreakglassJustification().equals(other.getBreakglassJustification())) return false; + if (!getBreakglassJustification() + .equals(other.getBreakglassJustification())) return false; if (!getBinauthzMethodCase().equals(other.getBinauthzMethodCase())) return false; switch (binauthzMethodCase_) { case 1: - if (getUseDefault() != other.getUseDefault()) return false; + if (getUseDefault() + != other.getUseDefault()) return false; break; case 0: default: @@ -333,7 +300,8 @@ public int hashCode() { switch (binauthzMethodCase_) { case 1: hash = (37 * hash) + USE_DEFAULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseDefault()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseDefault()); break; case 0: default: @@ -343,127 +311,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.BinaryAuthorization parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.BinaryAuthorization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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; } /** - * - * *
    * Settings for Binary Authorization feature.
    * 
* * Protobuf type {@code google.cloud.run.v2.BinaryAuthorization} */ - 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.run.v2.BinaryAuthorization) com.google.cloud.run.v2.BinaryAuthorizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.BinaryAuthorization.class, - com.google.cloud.run.v2.BinaryAuthorization.Builder.class); + com.google.cloud.run.v2.BinaryAuthorization.class, com.google.cloud.run.v2.BinaryAuthorization.Builder.class); } // Construct using com.google.cloud.run.v2.BinaryAuthorization.newBuilder() @@ -471,15 +430,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(); @@ -491,9 +451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override @@ -512,8 +472,7 @@ public com.google.cloud.run.v2.BinaryAuthorization build() { @java.lang.Override public com.google.cloud.run.v2.BinaryAuthorization buildPartial() { - com.google.cloud.run.v2.BinaryAuthorization result = - new com.google.cloud.run.v2.BinaryAuthorization(this); + com.google.cloud.run.v2.BinaryAuthorization result = new com.google.cloud.run.v2.BinaryAuthorization(this); if (binauthzMethodCase_ == 1) { result.binauthzMethod_ = binauthzMethod_; } @@ -527,39 +486,38 @@ public com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization) { - return mergeFrom((com.google.cloud.run.v2.BinaryAuthorization) other); + return mergeFrom((com.google.cloud.run.v2.BinaryAuthorization)other); } else { super.mergeFrom(other); return this; @@ -573,15 +531,13 @@ public Builder mergeFrom(com.google.cloud.run.v2.BinaryAuthorization other) { onChanged(); } switch (other.getBinauthzMethodCase()) { - case USE_DEFAULT: - { - setUseDefault(other.getUseDefault()); - break; - } - case BINAUTHZMETHOD_NOT_SET: - { - break; - } + case USE_DEFAULT: { + setUseDefault(other.getUseDefault()); + break; + } + case BINAUTHZMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -611,12 +567,12 @@ public Builder mergeFrom( } return this; } - private int binauthzMethodCase_ = 0; private java.lang.Object binauthzMethod_; - - public BinauthzMethodCase getBinauthzMethodCase() { - return BinauthzMethodCase.forNumber(binauthzMethodCase_); + public BinauthzMethodCase + getBinauthzMethodCase() { + return BinauthzMethodCase.forNumber( + binauthzMethodCase_); } public Builder clearBinauthzMethod() { @@ -626,31 +582,26 @@ public Builder clearBinauthzMethod() { return this; } + /** - * - * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; - * * @return Whether the useDefault field is set. */ public boolean hasUseDefault() { return binauthzMethodCase_ == 1; } /** - * - * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; - * * @return The useDefault. */ public boolean getUseDefault() { @@ -660,15 +611,12 @@ public boolean getUseDefault() { return false; } /** - * - * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; - * * @param value The useDefault to set. * @return This builder for chaining. */ @@ -679,15 +627,12 @@ public Builder setUseDefault(boolean value) { return this; } /** - * - * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; - * * @return This builder for chaining. */ public Builder clearUseDefault() { @@ -701,8 +646,6 @@ public Builder clearUseDefault() { private java.lang.Object breakglassJustification_ = ""; /** - * - * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -711,13 +654,13 @@ public Builder clearUseDefault() {
      * 
* * string breakglass_justification = 2; - * * @return The breakglassJustification. */ public java.lang.String getBreakglassJustification() { java.lang.Object ref = breakglassJustification_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); breakglassJustification_ = s; return s; @@ -726,8 +669,6 @@ public java.lang.String getBreakglassJustification() { } } /** - * - * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -736,14 +677,15 @@ public java.lang.String getBreakglassJustification() {
      * 
* * string breakglass_justification = 2; - * * @return The bytes for breakglassJustification. */ - public com.google.protobuf.ByteString getBreakglassJustificationBytes() { + public com.google.protobuf.ByteString + getBreakglassJustificationBytes() { java.lang.Object ref = breakglassJustification_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); breakglassJustification_ = b; return b; } else { @@ -751,8 +693,6 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() { } } /** - * - * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -761,22 +701,20 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() {
      * 
* * string breakglass_justification = 2; - * * @param value The breakglassJustification to set. * @return This builder for chaining. */ - public Builder setBreakglassJustification(java.lang.String value) { + public Builder setBreakglassJustification( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + breakglassJustification_ = value; onChanged(); return this; } /** - * - * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -785,18 +723,15 @@ public Builder setBreakglassJustification(java.lang.String value) {
      * 
* * string breakglass_justification = 2; - * * @return This builder for chaining. */ public Builder clearBreakglassJustification() { - + breakglassJustification_ = getDefaultInstance().getBreakglassJustification(); onChanged(); return this; } /** - * - * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -805,23 +740,23 @@ public Builder clearBreakglassJustification() {
      * 
* * string breakglass_justification = 2; - * * @param value The bytes for breakglassJustification to set. * @return This builder for chaining. */ - public Builder setBreakglassJustificationBytes(com.google.protobuf.ByteString value) { + public Builder setBreakglassJustificationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + breakglassJustification_ = 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); } @@ -831,12 +766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.BinaryAuthorization) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.BinaryAuthorization) private static final com.google.cloud.run.v2.BinaryAuthorization DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.BinaryAuthorization(); } @@ -845,16 +780,16 @@ public static com.google.cloud.run.v2.BinaryAuthorization getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinaryAuthorization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinaryAuthorization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinaryAuthorization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,4 +804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.BinaryAuthorization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java index e5d7041..5080ca3 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface BinaryAuthorizationOrBuilder - extends +public interface BinaryAuthorizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.BinaryAuthorization) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; - * * @return Whether the useDefault field is set. */ boolean hasUseDefault(); /** - * - * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; - * * @return The useDefault. */ boolean getUseDefault(); /** - * - * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -61,13 +37,10 @@ public interface BinaryAuthorizationOrBuilder
    * 
* * string breakglass_justification = 2; - * * @return The breakglassJustification. */ java.lang.String getBreakglassJustification(); /** - * - * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -76,10 +49,10 @@ public interface BinaryAuthorizationOrBuilder
    * 
* * string breakglass_justification = 2; - * * @return The bytes for breakglassJustification. */ - com.google.protobuf.ByteString getBreakglassJustificationBytes(); + com.google.protobuf.ByteString + getBreakglassJustificationBytes(); public com.google.cloud.run.v2.BinaryAuthorization.BinauthzMethodCase getBinauthzMethodCase(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java similarity index 74% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java index b250b9b..9dba37b 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * Represents a specific Cloud SQL instance.
  * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ -public final class CloudSqlInstance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSqlInstance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CloudSqlInstance) CloudSqlInstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSqlInstance.newBuilder() to construct. private CloudSqlInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlInstance() { instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlInstance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private CloudSqlInstance( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instances_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private CloudSqlInstance( } 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)) { instances_ = instances_.getUnmodifiableView(); @@ -104,27 +87,22 @@ private CloudSqlInstance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, - com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList instances_; /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -134,15 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList getInstancesList() { + public com.google.protobuf.ProtocolStringList + getInstancesList() { return instances_; } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -152,15 +128,12 @@ public com.google.protobuf.ProtocolStringList getInstancesList() {
    * 
* * repeated string instances = 1; - * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -170,7 +143,6 @@ public int getInstancesCount() {
    * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -178,8 +150,6 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -189,16 +159,15 @@ public java.lang.String getInstances(int index) {
    * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString getInstancesBytes(int index) { + public com.google.protobuf.ByteString + getInstancesBytes(int index) { return instances_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,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 < instances_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instances_.getRaw(i)); } @@ -239,14 +209,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.run.v2.CloudSqlInstance)) { return super.equals(obj); } com.google.cloud.run.v2.CloudSqlInstance other = (com.google.cloud.run.v2.CloudSqlInstance) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,127 +238,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.CloudSqlInstance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.CloudSqlInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.CloudSqlInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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 a specific Cloud SQL instance.
    * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ - 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.run.v2.CloudSqlInstance) com.google.cloud.run.v2.CloudSqlInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, - com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } // Construct using com.google.cloud.run.v2.CloudSqlInstance.newBuilder() @@ -395,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(); @@ -413,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override @@ -434,8 +397,7 @@ public com.google.cloud.run.v2.CloudSqlInstance build() { @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance buildPartial() { - com.google.cloud.run.v2.CloudSqlInstance result = - new com.google.cloud.run.v2.CloudSqlInstance(this); + com.google.cloud.run.v2.CloudSqlInstance result = new com.google.cloud.run.v2.CloudSqlInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { instances_ = instances_.getUnmodifiableView(); @@ -450,39 +412,38 @@ public com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance) { - return mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) other); + return mergeFrom((com.google.cloud.run.v2.CloudSqlInstance)other); } else { super.mergeFrom(other); return this; @@ -529,21 +490,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList instances_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new com.google.protobuf.LazyStringArrayList(instances_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -553,15 +509,13 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList getInstancesList() { + public com.google.protobuf.ProtocolStringList + getInstancesList() { return instances_.getUnmodifiableView(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -571,15 +525,12 @@ public com.google.protobuf.ProtocolStringList getInstancesList() {
      * 
* * repeated string instances = 1; - * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -589,7 +540,6 @@ public int getInstancesCount() {
      * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -597,8 +547,6 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -608,16 +556,14 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString getInstancesBytes(int index) { + public com.google.protobuf.ByteString + getInstancesBytes(int index) { return instances_.getByteString(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -627,23 +573,21 @@ public com.google.protobuf.ByteString getInstancesBytes(int index) {
      * 
* * repeated string instances = 1; - * * @param index The index to set the value at. * @param value The instances to set. * @return This builder for chaining. */ - public Builder setInstances(int index, java.lang.String value) { + public Builder setInstances( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -653,22 +597,20 @@ public Builder setInstances(int index, java.lang.String value) {
      * 
* * repeated string instances = 1; - * * @param value The instances to add. * @return This builder for chaining. */ - public Builder addInstances(java.lang.String value) { + public Builder addInstances( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -678,19 +620,18 @@ public Builder addInstances(java.lang.String value) {
      * 
* * repeated string instances = 1; - * * @param values The instances to add. * @return This builder for chaining. */ - public Builder addAllInstances(java.lang.Iterable values) { + public Builder addAllInstances( + java.lang.Iterable values) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -700,7 +641,6 @@ public Builder addAllInstances(java.lang.Iterable values) {
      * 
* * repeated string instances = 1; - * * @return This builder for chaining. */ public Builder clearInstances() { @@ -710,8 +650,6 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -721,23 +659,23 @@ public Builder clearInstances() {
      * 
* * repeated string instances = 1; - * * @param value The bytes of the instances to add. * @return This builder for chaining. */ - public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + public Builder addInstancesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstancesIsMutable(); instances_.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); } @@ -747,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CloudSqlInstance) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CloudSqlInstance) private static final com.google.cloud.run.v2.CloudSqlInstance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.CloudSqlInstance(); } @@ -761,16 +699,16 @@ public static com.google.cloud.run.v2.CloudSqlInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlInstance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlInstance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -785,4 +723,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CloudSqlInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java index e3e803e..7d86c2e 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface CloudSqlInstanceOrBuilder - extends +public interface CloudSqlInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CloudSqlInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -35,13 +17,11 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -51,13 +31,10 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @return The count of instances. */ int getInstancesCount(); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -67,14 +44,11 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ java.lang.String getInstances(int index); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -84,9 +58,9 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - com.google.protobuf.ByteString getInstancesBytes(int index); + com.google.protobuf.ByteString + getInstancesBytes(int index); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java similarity index 76% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index da24e6f..f4e9694 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.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/run/v2/condition.proto package com.google.cloud.run.v2; /** - * - * *
  * Defines a status condition for a resource.
  * 
* * Protobuf type {@code google.cloud.run.v2.Condition} */ -public final class Condition extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Condition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Condition) ConditionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Condition() { type_ = ""; state_ = 0; @@ -46,15 +28,16 @@ private Condition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Condition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Condition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,77 +56,68 @@ private Condition( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + type_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; + message_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastTransitionTime_ != null) { + subBuilder = lastTransitionTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastTransitionTime_ != null) { - subBuilder = lastTransitionTime_.toBuilder(); - } - lastTransitionTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTransitionTime_); - lastTransitionTime_ = subBuilder.buildPartial(); - } - - break; + lastTransitionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); - reasonsCase_ = 6; - reasons_ = rawValue; - break; - } - case 72: - { - int rawValue = input.readEnum(); - reasonsCase_ = 9; - reasons_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); - reasonsCase_ = 11; - reasons_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 40: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); + reasonsCase_ = 6; + reasons_ = rawValue; + break; + } + case 72: { + int rawValue = input.readEnum(); + reasonsCase_ = 9; + reasons_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + reasonsCase_ = 11; + reasons_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -151,41 +125,36 @@ private Condition( } 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.run.v2.ConditionProto - .internal_static_google_cloud_run_v2_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ConditionProto - .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable + return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.Condition.class, - com.google.cloud.run.v2.Condition.Builder.class); + com.google.cloud.run.v2.Condition.class, com.google.cloud.run.v2.Condition.Builder.class); } /** - * - * *
    * Represents the possible Condition states.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -194,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -204,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_PENDING(1), /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -214,8 +179,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_RECONCILING(2), /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -224,8 +187,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_FAILED(3), /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -237,8 +198,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -247,8 +206,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -257,8 +214,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_PENDING_VALUE = 1; /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -267,8 +222,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_RECONCILING_VALUE = 2; /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -277,8 +230,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_FAILED_VALUE = 3; /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -287,6 +238,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_SUCCEEDED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -311,53 +263,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CONDITION_PENDING; - case 2: - return CONDITION_RECONCILING; - case 3: - return CONDITION_FAILED; - case 4: - return CONDITION_SUCCEEDED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return CONDITION_PENDING; + case 2: return CONDITION_RECONCILING; + case 3: return CONDITION_FAILED; + case 4: return CONDITION_SUCCEEDED; + default: return null; + } } - 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 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() { + 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.run.v2.Condition.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; @@ -375,18 +325,15 @@ private State(int value) { } /** - * - * *
    * Represents the severity of the condition failures.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified severity
      * 
@@ -395,8 +342,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Error severity.
      * 
@@ -405,8 +350,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(1), /** - * - * *
      * Warning severity.
      * 
@@ -415,8 +358,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
      * Info severity.
      * 
@@ -428,8 +369,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified severity
      * 
@@ -438,8 +377,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Error severity.
      * 
@@ -448,8 +385,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 1; /** - * - * *
      * Warning severity.
      * 
@@ -458,8 +393,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
      * Info severity.
      * 
@@ -468,6 +401,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( @@ -492,51 +426,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.run.v2.Condition.getDescriptor().getEnumTypes().get(1); } 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; @@ -554,18 +487,15 @@ private Severity(int value) { } /** - * - * *
    * Reasons common to all types of conditions.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.CommonReason} */ - public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { + public enum CommonReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -574,8 +504,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ COMMON_REASON_UNDEFINED(0), /** - * - * *
      * Reason unknown. Further details will be in message.
      * 
@@ -584,8 +512,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(1), /** - * - * *
      * Revision creation process failed.
      * 
@@ -594,8 +520,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_FAILED(3), /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -604,8 +528,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ PROGRESS_DEADLINE_EXCEEDED(4), /** - * - * *
      * The container image path is incorrect.
      * 
@@ -614,8 +536,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_MISSING(6), /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -624,8 +544,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_PERMISSION_DENIED(7), /** - * - * *
      * Container image is not authorized by policy.
      * 
@@ -634,8 +552,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -644,8 +560,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** - * - * *
      * Insufficient permissions on encryption key.
      * 
@@ -654,8 +568,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** - * - * *
      * Permission check on encryption key failed.
      * 
@@ -664,8 +576,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_CHECK_FAILED(11), /** - * - * *
      * At least one Access check on secrets failed.
      * 
@@ -674,8 +584,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ SECRETS_ACCESS_CHECK_FAILED(12), /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -684,8 +592,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ WAITING_FOR_OPERATION(13), /** - * - * *
      * System will retry immediately.
      * 
@@ -694,8 +600,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ IMMEDIATE_RETRY(14), /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -704,8 +608,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ POSTPONED_RETRY(15), /** - * - * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -717,8 +619,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -727,8 +627,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMMON_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Reason unknown. Further details will be in message.
      * 
@@ -737,8 +635,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 1; /** - * - * *
      * Revision creation process failed.
      * 
@@ -747,8 +643,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_FAILED_VALUE = 3; /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -757,8 +651,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** - * - * *
      * The container image path is incorrect.
      * 
@@ -767,8 +659,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_MISSING_VALUE = 6; /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -777,8 +667,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7; /** - * - * *
      * Container image is not authorized by policy.
      * 
@@ -787,8 +675,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -797,8 +683,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9; /** - * - * *
      * Insufficient permissions on encryption key.
      * 
@@ -807,8 +691,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10; /** - * - * *
      * Permission check on encryption key failed.
      * 
@@ -817,8 +699,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11; /** - * - * *
      * At least one Access check on secrets failed.
      * 
@@ -827,8 +707,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -837,8 +715,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** - * - * *
      * System will retry immediately.
      * 
@@ -847,8 +723,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -857,8 +731,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTPONED_RETRY_VALUE = 15; /** - * - * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -867,6 +739,7 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_VALUE = 16; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -891,73 +764,61 @@ public static CommonReason valueOf(int value) { */ public static CommonReason forNumber(int value) { switch (value) { - case 0: - return COMMON_REASON_UNDEFINED; - case 1: - return UNKNOWN; - case 3: - return REVISION_FAILED; - case 4: - return PROGRESS_DEADLINE_EXCEEDED; - case 6: - return CONTAINER_MISSING; - case 7: - return CONTAINER_PERMISSION_DENIED; - case 8: - return CONTAINER_IMAGE_UNAUTHORIZED; - case 9: - return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; - case 10: - return ENCRYPTION_KEY_PERMISSION_DENIED; - case 11: - return ENCRYPTION_KEY_CHECK_FAILED; - case 12: - return SECRETS_ACCESS_CHECK_FAILED; - case 13: - return WAITING_FOR_OPERATION; - case 14: - return IMMEDIATE_RETRY; - case 15: - return POSTPONED_RETRY; - case 16: - return INTERNAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return COMMON_REASON_UNDEFINED; + case 1: return UNKNOWN; + case 3: return REVISION_FAILED; + case 4: return PROGRESS_DEADLINE_EXCEEDED; + case 6: return CONTAINER_MISSING; + case 7: return CONTAINER_PERMISSION_DENIED; + case 8: return CONTAINER_IMAGE_UNAUTHORIZED; + case 9: return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; + case 10: return ENCRYPTION_KEY_PERMISSION_DENIED; + case 11: return ENCRYPTION_KEY_CHECK_FAILED; + case 12: return SECRETS_ACCESS_CHECK_FAILED; + case 13: return WAITING_FOR_OPERATION; + case 14: return IMMEDIATE_RETRY; + case 15: return POSTPONED_RETRY; + case 16: return INTERNAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + CommonReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommonReason findValueByNumber(int number) { + return CommonReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CommonReason findValueByNumber(int number) { - return CommonReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(2); } private static final CommonReason[] VALUES = values(); - public static CommonReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CommonReason 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; @@ -975,18 +836,15 @@ private CommonReason(int value) { } /** - * - * *
    * Reasons specific to Revision resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason} */ - public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { + public enum RevisionReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -995,8 +853,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_REASON_UNDEFINED(0), /** - * - * *
      * Revision in Pending state.
      * 
@@ -1005,8 +861,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -1015,8 +869,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RESERVE(2), /** - * - * *
      * Revision is Retired.
      * 
@@ -1025,8 +877,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRED(3), /** - * - * *
      * Revision is being retired.
      * 
@@ -1035,8 +885,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRING(4), /** - * - * *
      * Revision is being recreated.
      * 
@@ -1045,8 +893,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RECREATING(5), /** - * - * *
      * There was a health check error.
      * 
@@ -1055,8 +901,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ HEALTH_CHECK_CONTAINER_ERROR(6), /** - * - * *
      * Health check failed due to user error from customized path of the
      * container. System will retry.
@@ -1066,8 +910,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOMIZED_PATH_RESPONSE_PENDING(7),
     /**
-     *
-     *
      * 
      * A revision with min_instance_count > 0 was created and is reserved, but
      * it was not configured to serve traffic, so it's not live. This can also
@@ -1078,8 +920,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
-     *
-     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1088,8 +928,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE_REVISION_LIMIT_REACHED(9), /** - * - * *
      * There was no deployment defined.
      * This value is no longer used, but Services created in older versions of
@@ -1100,8 +938,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     NO_DEPLOYMENT(10),
     /**
-     *
-     *
      * 
      * A revision's container has no port specified since the revision is of a
      * manually scaled service with 0 instance count
@@ -1114,8 +950,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1124,8 +958,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Revision in Pending state.
      * 
@@ -1134,8 +966,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -1144,8 +974,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESERVE_VALUE = 2; /** - * - * *
      * Revision is Retired.
      * 
@@ -1154,8 +982,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRED_VALUE = 3; /** - * - * *
      * Revision is being retired.
      * 
@@ -1164,8 +990,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRING_VALUE = 4; /** - * - * *
      * Revision is being recreated.
      * 
@@ -1174,8 +998,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECREATING_VALUE = 5; /** - * - * *
      * There was a health check error.
      * 
@@ -1184,8 +1006,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HEALTH_CHECK_CONTAINER_ERROR_VALUE = 6; /** - * - * *
      * Health check failed due to user error from customized path of the
      * container. System will retry.
@@ -1195,8 +1015,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOMIZED_PATH_RESPONSE_PENDING_VALUE = 7;
     /**
-     *
-     *
      * 
      * A revision with min_instance_count > 0 was created and is reserved, but
      * it was not configured to serve traffic, so it's not live. This can also
@@ -1207,8 +1025,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
     /**
-     *
-     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1217,8 +1033,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_REVISION_LIMIT_REACHED_VALUE = 9; /** - * - * *
      * There was no deployment defined.
      * This value is no longer used, but Services created in older versions of
@@ -1229,8 +1043,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NO_DEPLOYMENT_VALUE = 10;
     /**
-     *
-     *
      * 
      * A revision's container has no port specified since the revision is of a
      * manually scaled service with 0 instance count
@@ -1240,6 +1052,7 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEALTH_CHECK_SKIPPED_VALUE = 11;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1264,67 +1077,58 @@ public static RevisionReason valueOf(int value) {
      */
     public static RevisionReason forNumber(int value) {
       switch (value) {
-        case 0:
-          return REVISION_REASON_UNDEFINED;
-        case 1:
-          return PENDING;
-        case 2:
-          return RESERVE;
-        case 3:
-          return RETIRED;
-        case 4:
-          return RETIRING;
-        case 5:
-          return RECREATING;
-        case 6:
-          return HEALTH_CHECK_CONTAINER_ERROR;
-        case 7:
-          return CUSTOMIZED_PATH_RESPONSE_PENDING;
-        case 8:
-          return MIN_INSTANCES_NOT_PROVISIONED;
-        case 9:
-          return ACTIVE_REVISION_LIMIT_REACHED;
-        case 10:
-          return NO_DEPLOYMENT;
-        case 11:
-          return HEALTH_CHECK_SKIPPED;
-        default:
-          return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+        case 0: return REVISION_REASON_UNDEFINED;
+        case 1: return PENDING;
+        case 2: return RESERVE;
+        case 3: return RETIRED;
+        case 4: return RETIRING;
+        case 5: return RECREATING;
+        case 6: return HEALTH_CHECK_CONTAINER_ERROR;
+        case 7: return CUSTOMIZED_PATH_RESPONSE_PENDING;
+        case 8: return MIN_INSTANCES_NOT_PROVISIONED;
+        case 9: return ACTIVE_REVISION_LIMIT_REACHED;
+        case 10: return NO_DEPLOYMENT;
+        case 11: return HEALTH_CHECK_SKIPPED;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        RevisionReason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public RevisionReason findValueByNumber(int number) {
+              return RevisionReason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RevisionReason findValueByNumber(int number) {
-            return RevisionReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
     }
 
     private static final RevisionReason[] VALUES = values();
 
-    public static RevisionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static RevisionReason 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;
@@ -1342,18 +1146,15 @@ private RevisionReason(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Reasons specific to Execution resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.ExecutionReason} */ - public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -1362,8 +1163,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION_REASON_UNDEFINED(0), /** - * - * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1372,8 +1171,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATUS_SERVICE_POLLING_ERROR(1), /** - * - * *
      * A task reached its retry limit and the last attempt failed due to the
      * user container exiting with a non-zero exit code.
@@ -1386,8 +1183,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1396,8 +1191,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1406,8 +1199,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATUS_SERVICE_POLLING_ERROR_VALUE = 1; /** - * - * *
      * A task reached its retry limit and the last attempt failed due to the
      * user container exiting with a non-zero exit code.
@@ -1417,6 +1208,7 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NON_ZERO_EXIT_CODE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1441,42 +1233,39 @@ public static ExecutionReason valueOf(int value) {
      */
     public static ExecutionReason forNumber(int value) {
       switch (value) {
-        case 0:
-          return EXECUTION_REASON_UNDEFINED;
-        case 1:
-          return JOB_STATUS_SERVICE_POLLING_ERROR;
-        case 2:
-          return NON_ZERO_EXIT_CODE;
-        default:
-          return null;
+        case 0: return EXECUTION_REASON_UNDEFINED;
+        case 1: return JOB_STATUS_SERVICE_POLLING_ERROR;
+        case 2: return NON_ZERO_EXIT_CODE;
+        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<
+        ExecutionReason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ExecutionReason findValueByNumber(int number) {
+              return ExecutionReason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ExecutionReason findValueByNumber(int number) {
-                return ExecutionReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1485,7 +1274,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ExecutionReason 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;
@@ -1504,17 +1294,14 @@ private ExecutionReason(int value) {
 
   private int reasonsCase_ = 0;
   private java.lang.Object reasons_;
-
   public enum ReasonsCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REASON(6),
     REVISION_REASON(9),
     EXECUTION_REASON(11),
     REASONS_NOT_SET(0);
     private final int value;
-
     private ReasonsCase(int value) {
       this.value = value;
     }
@@ -1530,33 +1317,27 @@ public static ReasonsCase valueOf(int value) {
 
     public static ReasonsCase forNumber(int value) {
       switch (value) {
-        case 6:
-          return REASON;
-        case 9:
-          return REVISION_REASON;
-        case 11:
-          return EXECUTION_REASON;
-        case 0:
-          return REASONS_NOT_SET;
-        default:
-          return null;
+        case 6: return REASON;
+        case 9: return REVISION_REASON;
+        case 11: return EXECUTION_REASON;
+        case 0: return REASONS_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ReasonsCase getReasonsCase() {
-    return ReasonsCase.forNumber(reasonsCase_);
+  public ReasonsCase
+  getReasonsCase() {
+    return ReasonsCase.forNumber(
+        reasonsCase_);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object type_;
   /**
-   *
-   *
    * 
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1566,7 +1347,6 @@ public ReasonsCase getReasonsCase() {
    * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -1575,15 +1355,14 @@ 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; } } /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1593,15 +1372,16 @@ public java.lang.String getType() {
    * 
* * string type = 1; - * * @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 { @@ -1612,50 +1392,38 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.run.v2.Condition.State getState() { + @java.lang.Override public com.google.cloud.run.v2.Condition.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.State result = - com.google.cloud.run.v2.Condition.State.valueOf(state_); + com.google.cloud.run.v2.Condition.State result = com.google.cloud.run.v2.Condition.State.valueOf(state_); return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; - * * @return The message. */ @java.lang.Override @@ -1664,29 +1432,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; } } /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * 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 { @@ -1697,14 +1465,11 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastTransitionTime_; /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return Whether the lastTransitionTime field is set. */ @java.lang.Override @@ -1712,25 +1477,18 @@ public boolean hasLastTransitionTime() { return lastTransitionTime_ != null; } /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return The lastTransitionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastTransitionTime() { - return lastTransitionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastTransitionTime_; + return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; } /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -1745,63 +1503,48 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 5; private int severity_; /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.run.v2.Condition.Severity getSeverity() { + @java.lang.Override public com.google.cloud.run.v2.Condition.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.Severity result = - com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); + com.google.cloud.run.v2.Condition.Severity result = com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 6; /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return Whether the reason field is set. */ public boolean hasReason() { return reasonsCase_ == 6; } /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The enum numeric value on the wire for reason. */ public int getReasonValue() { @@ -1811,21 +1554,18 @@ public int getReasonValue() { return 0; } /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The reason. */ public com.google.cloud.run.v2.Condition.CommonReason getReason() { if (reasonsCase_ == 6) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.CommonReason result = - com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_); + com.google.cloud.run.v2.Condition.CommonReason result = com.google.cloud.run.v2.Condition.CommonReason.valueOf( + (java.lang.Integer) reasons_); return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED; @@ -1833,28 +1573,22 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int REVISION_REASON_FIELD_NUMBER = 9; /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The enum numeric value on the wire for revisionReason. */ public int getRevisionReasonValue() { @@ -1864,52 +1598,41 @@ public int getRevisionReasonValue() { return 0; } /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The revisionReason. */ public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { if (reasonsCase_ == 9) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.RevisionReason result = - com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.RevisionReason result = com.google.cloud.run.v2.Condition.RevisionReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED; } public static final int EXECUTION_REASON_FIELD_NUMBER = 11; /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return Whether the executionReason field is set. */ public boolean hasExecutionReason() { return reasonsCase_ == 11; } /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The enum numeric value on the wire for executionReason. */ public int getExecutionReasonValue() { @@ -1919,30 +1642,24 @@ public int getExecutionReasonValue() { return 0; } /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The executionReason. */ public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() { if (reasonsCase_ == 11) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.ExecutionReason result = - com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.ExecutionReason result = com.google.cloud.run.v2.Condition.ExecutionReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1954,7 +1671,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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -1992,28 +1710,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (lastTransitionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastTransitionTime()); } if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, severity_); } if (reasonsCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, ((java.lang.Integer) reasons_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2023,31 +1744,37 @@ 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.run.v2.Condition)) { return super.equals(obj); } com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj; - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; if (state_ != other.state_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; if (hasLastTransitionTime()) { - if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; + if (!getLastTransitionTime() + .equals(other.getLastTransitionTime())) return false; } if (severity_ != other.severity_) return false; if (!getReasonsCase().equals(other.getReasonsCase())) return false; switch (reasonsCase_) { case 6: - if (getReasonValue() != other.getReasonValue()) return false; + if (getReasonValue() + != other.getReasonValue()) return false; break; case 9: - if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false; + if (getRevisionReasonValue() + != other.getRevisionReasonValue()) return false; break; case 11: - if (getExecutionReasonValue() != other.getExecutionReasonValue()) return false; + if (getExecutionReasonValue() + != other.getExecutionReasonValue()) return false; break; case 0: default: @@ -2096,126 +1823,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Condition parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Condition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Condition 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.run.v2.Condition parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.Condition parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Condition 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.run.v2.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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; } /** - * - * *
    * Defines a status condition for a resource.
    * 
* * Protobuf type {@code google.cloud.run.v2.Condition} */ - 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.run.v2.Condition) com.google.cloud.run.v2.ConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ConditionProto - .internal_static_google_cloud_run_v2_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ConditionProto - .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable + return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.Condition.class, - com.google.cloud.run.v2.Condition.Builder.class); + com.google.cloud.run.v2.Condition.class, com.google.cloud.run.v2.Condition.Builder.class); } // Construct using com.google.cloud.run.v2.Condition.newBuilder() @@ -2223,15 +1942,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(); @@ -2255,9 +1975,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ConditionProto - .internal_static_google_cloud_run_v2_Condition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override @@ -2304,39 +2024,38 @@ public com.google.cloud.run.v2.Condition 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.run.v2.Condition) { - return mergeFrom((com.google.cloud.run.v2.Condition) other); + return mergeFrom((com.google.cloud.run.v2.Condition)other); } else { super.mergeFrom(other); return this; @@ -2363,25 +2082,21 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: - { - setReasonValue(other.getReasonValue()); - break; - } - case REVISION_REASON: - { - setRevisionReasonValue(other.getRevisionReasonValue()); - break; - } - case EXECUTION_REASON: - { - setExecutionReasonValue(other.getExecutionReasonValue()); - break; - } - case REASONS_NOT_SET: - { - break; - } + case REASON: { + setReasonValue(other.getReasonValue()); + break; + } + case REVISION_REASON: { + setRevisionReasonValue(other.getRevisionReasonValue()); + break; + } + case EXECUTION_REASON: { + setExecutionReasonValue(other.getExecutionReasonValue()); + break; + } + case REASONS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2411,12 +2126,12 @@ public Builder mergeFrom( } return this; } - private int reasonsCase_ = 0; private java.lang.Object reasons_; - - public ReasonsCase getReasonsCase() { - return ReasonsCase.forNumber(reasonsCase_); + public ReasonsCase + getReasonsCase() { + return ReasonsCase.forNumber( + reasonsCase_); } public Builder clearReasons() { @@ -2426,10 +2141,9 @@ public Builder clearReasons() { return this; } + private java.lang.Object type_ = ""; /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2439,13 +2153,13 @@ public Builder clearReasons() {
      * 
* * string type = 1; - * * @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; @@ -2454,8 +2168,6 @@ public java.lang.String getType() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2465,14 +2177,15 @@ public java.lang.String getType() {
      * 
* * string type = 1; - * * @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 { @@ -2480,8 +2193,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2491,22 +2202,20 @@ public com.google.protobuf.ByteString getTypeBytes() {
      * 
* * string type = 1; - * * @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; } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2516,18 +2225,15 @@ public Builder setType(java.lang.String value) {
      * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2537,16 +2243,16 @@ public Builder clearType() {
      * 
* * string type = 1; - * * @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; @@ -2554,65 +2260,51 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @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; } /** - * - * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.run.v2.Condition.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.State result = - com.google.cloud.run.v2.Condition.State.valueOf(state_); + com.google.cloud.run.v2.Condition.State result = com.google.cloud.run.v2.Condition.State.valueOf(state_); return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result; } /** - * - * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2620,24 +2312,21 @@ public Builder setState(com.google.cloud.run.v2.Condition.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2645,20 +2334,18 @@ public Builder clearState() { private java.lang.Object message_ = ""; /** - * - * *
      * Human readable message indicating details about the current status.
      * 
* * 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; @@ -2667,21 +2354,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * Human readable message indicating details about the current status.
      * 
* * 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 { @@ -2689,61 +2375,54 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * Human readable message indicating details about the current status.
      * 
* * 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; } /** - * - * *
      * Human readable message indicating details about the current status.
      * 
* * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
      * Human readable message indicating details about the current status.
      * 
* * 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; @@ -2751,47 +2430,34 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastTransitionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastTransitionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTransitionTimeBuilder_; /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return Whether the lastTransitionTime field is set. */ public boolean hasLastTransitionTime() { return lastTransitionTimeBuilder_ != null || lastTransitionTime_ != null; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return The lastTransitionTime. */ public com.google.protobuf.Timestamp getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { - return lastTransitionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastTransitionTime_; + return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2812,15 +2478,14 @@ public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; */ - public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastTransitionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); @@ -2831,8 +2496,6 @@ public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2843,9 +2506,7 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { if (lastTransitionTimeBuilder_ == null) { if (lastTransitionTime_ != null) { lastTransitionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastTransitionTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastTransitionTime_).mergeFrom(value).buildPartial(); } else { lastTransitionTime_ = value; } @@ -2857,8 +2518,6 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2877,8 +2536,6 @@ public Builder clearLastTransitionTime() { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2886,13 +2543,11 @@ public Builder clearLastTransitionTime() { * .google.protobuf.Timestamp last_transition_time = 4; */ public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() { - + onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2903,14 +2558,11 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { - return lastTransitionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastTransitionTime_; + return lastTransitionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; } } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2918,17 +2570,14 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { * .google.protobuf.Timestamp last_transition_time = 4; */ 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> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { - lastTransitionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastTransitionTime(), getParentForChildren(), isClean()); + lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastTransitionTime(), + getParentForChildren(), + isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; @@ -2936,65 +2585,51 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { private int severity_ = 0; /** - * - * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @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; } /** - * - * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The severity. */ @java.lang.Override public com.google.cloud.run.v2.Condition.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.Severity result = - com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); + com.google.cloud.run.v2.Condition.Severity result = com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result; } /** - * - * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @param value The severity to set. * @return This builder for chaining. */ @@ -3002,38 +2637,32 @@ public Builder setSeverity(com.google.cloud.run.v2.Condition.Severity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return Whether the reason field is set. */ @java.lang.Override @@ -3041,14 +2670,11 @@ public boolean hasReason() { return reasonsCase_ == 6; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The enum numeric value on the wire for reason. */ @java.lang.Override @@ -3059,14 +2685,11 @@ public int getReasonValue() { return 0; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -3077,37 +2700,29 @@ public Builder setReasonValue(int value) { return this; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The reason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.CommonReason getReason() { if (reasonsCase_ == 6) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.CommonReason result = - com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.CommonReason result = com.google.cloud.run.v2.Condition.CommonReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @param value The reason to set. * @return This builder for chaining. */ @@ -3121,14 +2736,11 @@ public Builder setReason(com.google.cloud.run.v2.Condition.CommonReason value) { return this; } /** - * - * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -3141,14 +2753,11 @@ public Builder clearReason() { } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ @java.lang.Override @@ -3156,14 +2765,11 @@ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The enum numeric value on the wire for revisionReason. */ @java.lang.Override @@ -3174,14 +2780,11 @@ public int getRevisionReasonValue() { return 0; } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @param value The enum numeric value on the wire for revisionReason to set. * @return This builder for chaining. */ @@ -3192,37 +2795,29 @@ public Builder setRevisionReasonValue(int value) { return this; } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The revisionReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { if (reasonsCase_ == 9) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.RevisionReason result = - com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.RevisionReason result = com.google.cloud.run.v2.Condition.RevisionReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED; } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @param value The revisionReason to set. * @return This builder for chaining. */ @@ -3236,14 +2831,11 @@ public Builder setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReaso return this; } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return This builder for chaining. */ public Builder clearRevisionReason() { @@ -3256,14 +2848,11 @@ public Builder clearRevisionReason() { } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return Whether the executionReason field is set. */ @java.lang.Override @@ -3271,14 +2860,11 @@ public boolean hasExecutionReason() { return reasonsCase_ == 11; } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The enum numeric value on the wire for executionReason. */ @java.lang.Override @@ -3289,14 +2875,11 @@ public int getExecutionReasonValue() { return 0; } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @param value The enum numeric value on the wire for executionReason to set. * @return This builder for chaining. */ @@ -3307,37 +2890,29 @@ public Builder setExecutionReasonValue(int value) { return this; } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The executionReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() { if (reasonsCase_ == 11) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.ExecutionReason result = - com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.ExecutionReason result = com.google.cloud.run.v2.Condition.ExecutionReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED; } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @param value The executionReason to set. * @return This builder for chaining. */ @@ -3351,14 +2926,11 @@ public Builder setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionRea return this; } /** - * - * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return This builder for chaining. */ public Builder clearExecutionReason() { @@ -3369,9 +2941,9 @@ public Builder clearExecutionReason() { } 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); } @@ -3381,12 +2953,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Condition) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Condition) private static final com.google.cloud.run.v2.Condition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Condition(); } @@ -3395,16 +2967,16 @@ public static com.google.cloud.run.v2.Condition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Condition(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Condition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3419,4 +2991,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java similarity index 84% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java index 9449505..759ebdc 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.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/run/v2/condition.proto package com.google.cloud.run.v2; -public interface ConditionOrBuilder - extends +public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Condition) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -35,13 +17,10 @@ public interface ConditionOrBuilder
    * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -51,88 +30,69 @@ public interface ConditionOrBuilder
    * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The state. */ com.google.cloud.run.v2.Condition.State getState(); /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return Whether the lastTransitionTime field is set. */ boolean hasLastTransitionTime(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return The lastTransitionTime. */ com.google.protobuf.Timestamp getLastTransitionTime(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -142,137 +102,104 @@ public interface ConditionOrBuilder com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The severity. */ com.google.cloud.run.v2.Condition.Severity getSeverity(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return Whether the reason field is set. */ boolean hasReason(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The reason. */ com.google.cloud.run.v2.Condition.CommonReason getReason(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ boolean hasRevisionReason(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The enum numeric value on the wire for revisionReason. */ int getRevisionReasonValue(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The revisionReason. */ com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return Whether the executionReason field is set. */ boolean hasExecutionReason(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The enum numeric value on the wire for executionReason. */ int getExecutionReasonValue(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The executionReason. */ com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java new file mode 100644 index 0000000..40d73ca --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/condition.proto + +package com.google.cloud.run.v2; + +public final class ConditionProto { + private ConditionProto() {} + 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_run_v2_Condition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Condition_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/run/v2/condition.proto\022\023g" + + "oogle.cloud.run.v2\032\037google/protobuf/time" + + "stamp.proto\"\325\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + + "(\0162+.google.cloud.run.v2.Condition.Commo" + + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.RevisionReaso" + + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + + "loud.run.v2.Condition.ExecutionReasonH\000\"" + + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + + "\024HEALTH_CHECK_SKIPPED\020\013\"o\n\017ExecutionReas" + + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + + "ZERO_EXIT_CODE\020\002B\t\n\007reasonsBc\n\027com.googl" + + "e.cloud.run.v2B\016ConditionProtoP\001Z6google" + + ".golang.org/genproto/googleapis/cloud/ru" + + "n/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_Condition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_Condition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Condition_descriptor, + new java.lang.String[] { "Type", "State", "Message", "LastTransitionTime", "Severity", "Reason", "RevisionReason", "ExecutionReason", "Reasons", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java similarity index 81% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java index 1390135..d173f49 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * A single application container.
  * This specifies both the container to run, the command to run in the container
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Container}
  */
-public final class Container extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Container extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Container)
     ContainerOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Container.newBuilder() to construct.
   private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Container() {
     name_ = "";
     image_ = "";
@@ -53,15 +35,16 @@ private Container() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Container();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Container(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -81,95 +64,83 @@ private Container(
           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();
 
-              image_ = s;
-              break;
+            image_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              command_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                command_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              command_.add(s);
-              break;
+            command_.add(s);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              args_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                args_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              args_.add(s);
-              break;
+            args_.add(s);
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              env_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                env_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              env_.add(
-                  input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry));
-              break;
+            env_.add(
+                input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry));
+            break;
+          }
+          case 50: {
+            com.google.cloud.run.v2.ResourceRequirements.Builder subBuilder = null;
+            if (resources_ != null) {
+              subBuilder = resources_.toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.run.v2.ResourceRequirements.Builder subBuilder = null;
-              if (resources_ != null) {
-                subBuilder = resources_.toBuilder();
-              }
-              resources_ =
-                  input.readMessage(
-                      com.google.cloud.run.v2.ResourceRequirements.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resources_);
-                resources_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resources_ = input.readMessage(com.google.cloud.run.v2.ResourceRequirements.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resources_);
+              resources_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                ports_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              ports_.add(
-                  input.readMessage(
-                      com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry));
-              break;
+
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              ports_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                volumeMounts_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              volumeMounts_.add(
-                  input.readMessage(
-                      com.google.cloud.run.v2.VolumeMount.parser(), extensionRegistry));
-              break;
+            ports_.add(
+                input.readMessage(com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry));
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              volumeMounts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            volumeMounts_.add(
+                input.readMessage(com.google.cloud.run.v2.VolumeMount.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -177,7 +148,8 @@ private Container(
     } 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)) {
         command_ = command_.getUnmodifiableView();
@@ -198,33 +170,27 @@ private Container(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_Container_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_Container_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.Container.class,
-            com.google.cloud.run.v2.Container.Builder.class);
+            com.google.cloud.run.v2.Container.class, com.google.cloud.run.v2.Container.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -233,29 +199,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; } } /** - * - * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * 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 { @@ -266,15 +232,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ @java.lang.Override @@ -283,30 +246,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -317,8 +280,6 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int COMMAND_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList command_; /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -332,15 +293,13 @@ public com.google.protobuf.ByteString getImageBytes() {
    * 
* * repeated string command = 3; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_; } /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -354,15 +313,12 @@ public com.google.protobuf.ProtocolStringList getCommandList() {
    * 
* * repeated string command = 3; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -376,7 +332,6 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -384,8 +339,6 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -399,19 +352,17 @@ public java.lang.String getCommand(int index) {
    * 
* * repeated string command = 3; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -425,15 +376,13 @@ public com.google.protobuf.ByteString getCommandBytes(int index) {
    * 
* * repeated string args = 4; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -447,15 +396,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 4; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -469,7 +415,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -477,8 +422,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -492,19 +435,17 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 4; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 5; private java.util.List env_; /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -516,8 +457,6 @@ public java.util.List getEnvList() { return env_; } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -525,12 +464,11 @@ public java.util.List getEnvList() { * repeated .google.cloud.run.v2.EnvVar env = 5; */ @java.lang.Override - public java.util.List getEnvOrBuilderList() { + public java.util.List + getEnvOrBuilderList() { return env_; } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -542,8 +480,6 @@ public int getEnvCount() { return env_.size(); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -555,8 +491,6 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -564,15 +498,14 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { * repeated .google.cloud.run.v2.EnvVar env = 5; */ @java.lang.Override - public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { + public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( + int index) { return env_.get(index); } public static final int RESOURCES_FIELD_NUMBER = 6; private com.google.cloud.run.v2.ResourceRequirements resources_; /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -580,7 +513,6 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) {
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return Whether the resources field is set. */ @java.lang.Override @@ -588,8 +520,6 @@ public boolean hasResources() { return resources_ != null; } /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -597,18 +527,13 @@ public boolean hasResources() {
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return The resources. */ @java.lang.Override public com.google.cloud.run.v2.ResourceRequirements getResources() { - return resources_ == null - ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() - : resources_; + return resources_ == null ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_; } /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -625,8 +550,6 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
   public static final int PORTS_FIELD_NUMBER = 7;
   private java.util.List ports_;
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -642,8 +565,6 @@ public java.util.List getPortsList() {
     return ports_;
   }
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -655,13 +576,11 @@ public java.util.List getPortsList() {
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPortsOrBuilderList() {
     return ports_;
   }
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -677,8 +596,6 @@ public int getPortsCount() {
     return ports_.size();
   }
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -694,8 +611,6 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
     return ports_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -707,15 +622,14 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index) {
+  public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
+      int index) {
     return ports_.get(index);
   }
 
   public static final int VOLUME_MOUNTS_FIELD_NUMBER = 8;
   private java.util.List volumeMounts_;
   /**
-   *
-   *
    * 
    * Volume to mount into the container's filesystem.
    * 
@@ -727,8 +641,6 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -736,13 +648,11 @@ public java.util.List getVolumeMountsList() * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeMountsOrBuilderList() { return volumeMounts_; } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -754,8 +664,6 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -767,8 +675,6 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -776,12 +682,12 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( + int index) { return volumeMounts_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -793,7 +699,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_); } @@ -850,16 +757,20 @@ public int getSerializedSize() { size += 1 * getArgsList().size(); } for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, env_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, env_.get(i)); } if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getResources()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getResources()); } for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, ports_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.get(i)); } for (int i = 0; i < volumeMounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, volumeMounts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, volumeMounts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -869,24 +780,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.run.v2.Container)) { return super.equals(obj); } com.google.cloud.run.v2.Container other = (com.google.cloud.run.v2.Container) obj; - if (!getName().equals(other.getName())) return false; - if (!getImage().equals(other.getImage())) return false; - if (!getCommandList().equals(other.getCommandList())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getEnvList().equals(other.getEnvList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getEnvList() + .equals(other.getEnvList())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { - if (!getResources().equals(other.getResources())) return false; + if (!getResources() + .equals(other.getResources())) return false; } - if (!getPortsList().equals(other.getPortsList())) return false; - if (!getVolumeMountsList().equals(other.getVolumeMountsList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getVolumeMountsList() + .equals(other.getVolumeMountsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -931,103 +850,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Container parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Container parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Container 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.run.v2.Container parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.Container parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Container 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.run.v2.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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; } /** - * - * *
    * A single application container.
    * This specifies both the container to run, the command to run in the container
@@ -1038,23 +951,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.Container}
    */
-  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.run.v2.Container)
       com.google.cloud.run.v2.ContainerOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_Container_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_Container_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.Container.class,
-              com.google.cloud.run.v2.Container.Builder.class);
+              com.google.cloud.run.v2.Container.class, com.google.cloud.run.v2.Container.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Container.newBuilder()
@@ -1062,19 +973,19 @@ 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) {
         getEnvFieldBuilder();
         getPortsFieldBuilder();
         getVolumeMountsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1114,9 +1025,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_Container_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
     }
 
     @java.lang.Override
@@ -1189,39 +1100,38 @@ public com.google.cloud.run.v2.Container 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.run.v2.Container) {
-        return mergeFrom((com.google.cloud.run.v2.Container) other);
+        return mergeFrom((com.google.cloud.run.v2.Container)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1276,10 +1186,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             envBuilder_ = null;
             env_ = other.env_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            envBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEnvFieldBuilder()
-                    : null;
+            envBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEnvFieldBuilder() : null;
           } else {
             envBuilder_.addAllMessages(other.env_);
           }
@@ -1306,10 +1215,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             portsBuilder_ = null;
             ports_ = other.ports_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            portsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPortsFieldBuilder()
-                    : null;
+            portsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPortsFieldBuilder() : null;
           } else {
             portsBuilder_.addAllMessages(other.ports_);
           }
@@ -1333,10 +1241,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             volumeMountsBuilder_ = null;
             volumeMounts_ = other.volumeMounts_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            volumeMountsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getVolumeMountsFieldBuilder()
-                    : null;
+            volumeMountsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getVolumeMountsFieldBuilder() : null;
           } else {
             volumeMountsBuilder_.addAllMessages(other.volumeMounts_);
           }
@@ -1370,25 +1277,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; @@ -1397,21 +1301,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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 { @@ -1419,61 +1322,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; } /** - * - * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; @@ -1481,21 +1377,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object image_ = ""; /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1504,22 +1398,21 @@ public java.lang.String getImage() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1527,81 +1420,70 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList command_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1615,15 +1497,13 @@ private void ensureCommandIsMutable() {
      * 
* * repeated string command = 3; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_.getUnmodifiableView(); } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1637,15 +1517,12 @@ public com.google.protobuf.ProtocolStringList getCommandList() {
      * 
* * repeated string command = 3; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1659,7 +1536,6 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1667,8 +1543,6 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1682,16 +1556,14 @@ public java.lang.String getCommand(int index) {
      * 
* * repeated string command = 3; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1705,23 +1577,21 @@ public com.google.protobuf.ByteString getCommandBytes(int index) {
      * 
* * repeated string command = 3; - * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand(int index, java.lang.String value) { + public Builder setCommand( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); + throw new NullPointerException(); + } + ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1735,22 +1605,20 @@ public Builder setCommand(int index, java.lang.String value) {
      * 
* * repeated string command = 3; - * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand(java.lang.String value) { + public Builder addCommand( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); + throw new NullPointerException(); + } + ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1764,19 +1632,18 @@ public Builder addCommand(java.lang.String value) {
      * 
* * repeated string command = 3; - * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand(java.lang.Iterable values) { + public Builder addAllCommand( + java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); onChanged(); return this; } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1790,7 +1657,6 @@ public Builder addAllCommand(java.lang.Iterable values) {
      * 
* * repeated string command = 3; - * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1800,8 +1666,6 @@ public Builder clearCommand() { return this; } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1815,33 +1679,29 @@ public Builder clearCommand() {
      * 
* * repeated string command = 3; - * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes(com.google.protobuf.ByteString value) { + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1855,15 +1715,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 4; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1877,15 +1735,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 4; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1899,7 +1754,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1907,8 +1761,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1922,16 +1774,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 4; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1945,23 +1795,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 4; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1975,22 +1823,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 4; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2004,19 +1850,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 4; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2030,7 +1875,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 4; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -2040,8 +1884,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2055,39 +1897,34 @@ public Builder clearArgs() {
      * 
* * repeated string args = 4; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private java.util.List env_ = java.util.Collections.emptyList(); - + private java.util.List env_ = + java.util.Collections.emptyList(); private void ensureEnvIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { env_ = new java.util.ArrayList(env_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, - com.google.cloud.run.v2.EnvVar.Builder, - com.google.cloud.run.v2.EnvVarOrBuilder> - envBuilder_; + com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder> envBuilder_; /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2102,8 +1939,6 @@ public java.util.List getEnvList() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2118,8 +1953,6 @@ public int getEnvCount() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2134,15 +1967,14 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar value) { + public Builder setEnv( + int index, com.google.cloud.run.v2.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2156,15 +1988,14 @@ public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar value) { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder setEnv( + int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.set(index, builderForValue.build()); @@ -2175,8 +2006,6 @@ public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderF return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2197,15 +2026,14 @@ public Builder addEnv(com.google.cloud.run.v2.EnvVar value) { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar value) { + public Builder addEnv( + int index, com.google.cloud.run.v2.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2219,15 +2047,14 @@ public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar value) { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv(com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder addEnv( + com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(builderForValue.build()); @@ -2238,15 +2065,14 @@ public Builder addEnv(com.google.cloud.run.v2.EnvVar.Builder builderForValue) { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder addEnv( + int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(index, builderForValue.build()); @@ -2257,18 +2083,18 @@ public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderF return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addAllEnv(java.lang.Iterable values) { + public Builder addAllEnv( + java.lang.Iterable values) { if (envBuilder_ == null) { ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); onChanged(); } else { envBuilder_.addAllMessages(values); @@ -2276,8 +2102,6 @@ public Builder addAllEnv(java.lang.Iterable * List of environment variables to set in the container. *
@@ -2295,8 +2119,6 @@ public Builder clearEnv() { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2314,43 +2136,39 @@ public Builder removeEnv(int index) { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVar.Builder getEnvBuilder(int index) { + public com.google.cloud.run.v2.EnvVar.Builder getEnvBuilder( + int index) { return getEnvFieldBuilder().getBuilder(index); } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { + public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( + int index) { if (envBuilder_ == null) { - return env_.get(index); - } else { + return env_.get(index); } else { return envBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public java.util.List getEnvOrBuilderList() { + public java.util.List + getEnvOrBuilderList() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilderList(); } else { @@ -2358,8 +2176,6 @@ public java.util.List getEnvO } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2367,46 +2183,42 @@ public java.util.List getEnvO * repeated .google.cloud.run.v2.EnvVar env = 5; */ public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder(com.google.cloud.run.v2.EnvVar.getDefaultInstance()); + return getEnvFieldBuilder().addBuilder( + com.google.cloud.run.v2.EnvVar.getDefaultInstance()); } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder(int index) { - return getEnvFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.EnvVar.getDefaultInstance()); + public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder( + int index) { + return getEnvFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.EnvVar.getDefaultInstance()); } /** - * - * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public java.util.List getEnvBuilderList() { + public java.util.List + getEnvBuilderList() { return getEnvFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, - com.google.cloud.run.v2.EnvVar.Builder, - com.google.cloud.run.v2.EnvVarOrBuilder> + com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { - envBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, - com.google.cloud.run.v2.EnvVar.Builder, - com.google.cloud.run.v2.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder>( + env_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); env_ = null; } return envBuilder_; @@ -2414,13 +2226,8 @@ public java.util.List getEnvBuilderList( private com.google.cloud.run.v2.ResourceRequirements resources_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ResourceRequirements, - com.google.cloud.run.v2.ResourceRequirements.Builder, - com.google.cloud.run.v2.ResourceRequirementsOrBuilder> - resourcesBuilder_; + com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder> resourcesBuilder_; /** - * - * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2428,15 +2235,12 @@ public java.util.List getEnvBuilderList(
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** - * - * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2444,21 +2248,16 @@ public boolean hasResources() {
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return The resources. */ public com.google.cloud.run.v2.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { - return resources_ == null - ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() - : resources_; + return resources_ == null ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** - * - * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2481,8 +2280,6 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2503,8 +2300,6 @@ public Builder setResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2517,9 +2312,7 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       if (resourcesBuilder_ == null) {
         if (resources_ != null) {
           resources_ =
-              com.google.cloud.run.v2.ResourceRequirements.newBuilder(resources_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.run.v2.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial();
         } else {
           resources_ = value;
         }
@@ -2531,8 +2324,6 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2553,8 +2344,6 @@ public Builder clearResources() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2564,13 +2353,11 @@ public Builder clearResources() {
      * .google.cloud.run.v2.ResourceRequirements resources = 6;
      */
     public com.google.cloud.run.v2.ResourceRequirements.Builder getResourcesBuilder() {
-
+      
       onChanged();
       return getResourcesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2583,14 +2370,11 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
       if (resourcesBuilder_ != null) {
         return resourcesBuilder_.getMessageOrBuilder();
       } else {
-        return resources_ == null
-            ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()
-            : resources_;
+        return resources_ == null ?
+            com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_;
       }
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2600,41 +2384,32 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
      * .google.cloud.run.v2.ResourceRequirements resources = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.ResourceRequirements,
-            com.google.cloud.run.v2.ResourceRequirements.Builder,
-            com.google.cloud.run.v2.ResourceRequirementsOrBuilder>
+        com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder> 
         getResourcesFieldBuilder() {
       if (resourcesBuilder_ == null) {
-        resourcesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.ResourceRequirements,
-                com.google.cloud.run.v2.ResourceRequirements.Builder,
-                com.google.cloud.run.v2.ResourceRequirementsOrBuilder>(
-                getResources(), getParentForChildren(), isClean());
+        resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder>(
+                getResources(),
+                getParentForChildren(),
+                isClean());
         resources_ = null;
       }
       return resourcesBuilder_;
     }
 
     private java.util.List ports_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePortsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         ports_ = new java.util.ArrayList(ports_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.ContainerPort,
-            com.google.cloud.run.v2.ContainerPort.Builder,
-            com.google.cloud.run.v2.ContainerPortOrBuilder>
-        portsBuilder_;
+        com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder> portsBuilder_;
 
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2653,8 +2428,6 @@ public java.util.List getPortsList() {
       }
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2673,8 +2446,6 @@ public int getPortsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2693,8 +2464,6 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2705,7 +2474,8 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder setPorts(int index, com.google.cloud.run.v2.ContainerPort value) {
+    public Builder setPorts(
+        int index, com.google.cloud.run.v2.ContainerPort value) {
       if (portsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2719,8 +2489,6 @@ public Builder setPorts(int index, com.google.cloud.run.v2.ContainerPort value)
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2743,8 +2511,6 @@ public Builder setPorts(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2769,8 +2535,6 @@ public Builder addPorts(com.google.cloud.run.v2.ContainerPort value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2781,7 +2545,8 @@ public Builder addPorts(com.google.cloud.run.v2.ContainerPort value) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder addPorts(int index, com.google.cloud.run.v2.ContainerPort value) {
+    public Builder addPorts(
+        int index, com.google.cloud.run.v2.ContainerPort value) {
       if (portsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2795,8 +2560,6 @@ public Builder addPorts(int index, com.google.cloud.run.v2.ContainerPort value)
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2807,7 +2570,8 @@ public Builder addPorts(int index, com.google.cloud.run.v2.ContainerPort value)
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder addPorts(com.google.cloud.run.v2.ContainerPort.Builder builderForValue) {
+    public Builder addPorts(
+        com.google.cloud.run.v2.ContainerPort.Builder builderForValue) {
       if (portsBuilder_ == null) {
         ensurePortsIsMutable();
         ports_.add(builderForValue.build());
@@ -2818,8 +2582,6 @@ public Builder addPorts(com.google.cloud.run.v2.ContainerPort.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2842,8 +2604,6 @@ public Builder addPorts(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2858,7 +2618,8 @@ public Builder addAllPorts(
         java.lang.Iterable values) {
       if (portsBuilder_ == null) {
         ensurePortsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, ports_);
         onChanged();
       } else {
         portsBuilder_.addAllMessages(values);
@@ -2866,8 +2627,6 @@ public Builder addAllPorts(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2889,8 +2648,6 @@ public Builder clearPorts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2912,8 +2669,6 @@ public Builder removePorts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2924,12 +2679,11 @@ public Builder removePorts(int index) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(int index) {
+    public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(
+        int index) {
       return getPortsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2940,16 +2694,14 @@ public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(int index)
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index) {
+    public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
+        int index) {
       if (portsBuilder_ == null) {
-        return ports_.get(index);
-      } else {
+        return ports_.get(index);  } else {
         return portsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2960,8 +2712,8 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int inde
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public java.util.List
-        getPortsOrBuilderList() {
+    public java.util.List 
+         getPortsOrBuilderList() {
       if (portsBuilder_ != null) {
         return portsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2969,8 +2721,6 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int inde
       }
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2982,12 +2732,10 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int inde
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
     public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder() {
-      return getPortsFieldBuilder()
-          .addBuilder(com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
+      return getPortsFieldBuilder().addBuilder(
+          com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2998,13 +2746,12 @@ public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder() {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(int index) {
-      return getPortsFieldBuilder()
-          .addBuilder(index, com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
+    public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(
+        int index) {
+      return getPortsFieldBuilder().addBuilder(
+          index, com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -3015,46 +2762,38 @@ public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(int index)
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public java.util.List getPortsBuilderList() {
+    public java.util.List 
+         getPortsBuilderList() {
       return getPortsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.ContainerPort,
-            com.google.cloud.run.v2.ContainerPort.Builder,
-            com.google.cloud.run.v2.ContainerPortOrBuilder>
+        com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder> 
         getPortsFieldBuilder() {
       if (portsBuilder_ == null) {
-        portsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.run.v2.ContainerPort,
-                com.google.cloud.run.v2.ContainerPort.Builder,
-                com.google.cloud.run.v2.ContainerPortOrBuilder>(
-                ports_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
+        portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder>(
+                ports_,
+                ((bitField0_ & 0x00000008) != 0),
+                getParentForChildren(),
+                isClean());
         ports_ = null;
       }
       return portsBuilder_;
     }
 
     private java.util.List volumeMounts_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureVolumeMountsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
         volumeMounts_ = new java.util.ArrayList(volumeMounts_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.VolumeMount,
-            com.google.cloud.run.v2.VolumeMount.Builder,
-            com.google.cloud.run.v2.VolumeMountOrBuilder>
-        volumeMountsBuilder_;
+        com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder> volumeMountsBuilder_;
 
     /**
-     *
-     *
      * 
      * Volume to mount into the container's filesystem.
      * 
@@ -3069,8 +2808,6 @@ public java.util.List getVolumeMountsList() } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3085,8 +2822,6 @@ public int getVolumeMountsCount() { } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3101,15 +2836,14 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder setVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount value) { + public Builder setVolumeMounts( + int index, com.google.cloud.run.v2.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3123,8 +2857,6 @@ public Builder setVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount va return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3143,8 +2875,6 @@ public Builder setVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3165,15 +2895,14 @@ public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount value) { return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder addVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount value) { + public Builder addVolumeMounts( + int index, com.google.cloud.run.v2.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3187,15 +2916,14 @@ public Builder addVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount va return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount.Builder builderForValue) { + public Builder addVolumeMounts( + com.google.cloud.run.v2.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(builderForValue.build()); @@ -3206,8 +2934,6 @@ public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount.Builder build return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3226,8 +2952,6 @@ public Builder addVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3238,7 +2962,8 @@ public Builder addAllVolumeMounts( java.lang.Iterable values) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeMounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumeMounts_); onChanged(); } else { volumeMountsBuilder_.addAllMessages(values); @@ -3246,8 +2971,6 @@ public Builder addAllVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3265,8 +2988,6 @@ public Builder clearVolumeMounts() { return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3284,44 +3005,39 @@ public Builder removeVolumeMounts(int index) { return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMount.Builder getVolumeMountsBuilder(int index) { + public com.google.cloud.run.v2.VolumeMount.Builder getVolumeMountsBuilder( + int index) { return getVolumeMountsFieldBuilder().getBuilder(index); } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( + int index) { if (volumeMountsBuilder_ == null) { - return volumeMounts_.get(index); - } else { + return volumeMounts_.get(index); } else { return volumeMountsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public java.util.List - getVolumeMountsOrBuilderList() { + public java.util.List + getVolumeMountsOrBuilderList() { if (volumeMountsBuilder_ != null) { return volumeMountsBuilder_.getMessageOrBuilderList(); } else { @@ -3329,8 +3045,6 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3338,55 +3052,49 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder() { - return getVolumeMountsFieldBuilder() - .addBuilder(com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); + return getVolumeMountsFieldBuilder().addBuilder( + com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(int index) { - return getVolumeMountsFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); + public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder( + int index) { + return getVolumeMountsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public java.util.List - getVolumeMountsBuilderList() { + public java.util.List + getVolumeMountsBuilderList() { return getVolumeMountsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VolumeMount, - com.google.cloud.run.v2.VolumeMount.Builder, - com.google.cloud.run.v2.VolumeMountOrBuilder> + com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder> getVolumeMountsFieldBuilder() { if (volumeMountsBuilder_ == null) { - volumeMountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VolumeMount, - com.google.cloud.run.v2.VolumeMount.Builder, - com.google.cloud.run.v2.VolumeMountOrBuilder>( - volumeMounts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + volumeMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder>( + volumeMounts_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); volumeMounts_ = null; } return volumeMountsBuilder_; } - @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); } @@ -3396,12 +3104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Container) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Container) private static final com.google.cloud.run.v2.Container DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Container(); } @@ -3410,16 +3118,16 @@ public static com.google.cloud.run.v2.Container getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Container(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3434,4 +3142,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java similarity index 88% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java index 893005e..7e227a9 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java @@ -1,83 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ContainerOrBuilder - extends +public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Container) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -91,13 +63,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @return A list containing the command. */ - java.util.List getCommandList(); + java.util.List + getCommandList(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -111,13 +81,10 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @return The count of command. */ int getCommandCount(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -131,14 +98,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -152,15 +116,13 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString getCommandBytes(int index); + com.google.protobuf.ByteString + getCommandBytes(int index); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -174,13 +136,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -194,13 +154,10 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -214,14 +171,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -235,25 +189,22 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List getEnvList(); + java.util.List + getEnvList(); /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -262,8 +213,6 @@ public interface ContainerOrBuilder */ com.google.cloud.run.v2.EnvVar getEnv(int index); /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -272,29 +221,25 @@ public interface ContainerOrBuilder */ int getEnvCount(); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List getEnvOrBuilderList(); + java.util.List + getEnvOrBuilderList(); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index); + com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( + int index); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -302,13 +247,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return Whether the resources field is set. */ boolean hasResources(); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -316,13 +258,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return The resources. */ com.google.cloud.run.v2.ResourceRequirements getResources(); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -334,8 +273,6 @@ public interface ContainerOrBuilder
   com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -346,10 +283,9 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List getPortsList();
+  java.util.List 
+      getPortsList();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -362,8 +298,6 @@ public interface ContainerOrBuilder
    */
   com.google.cloud.run.v2.ContainerPort getPorts(int index);
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -376,8 +310,6 @@ public interface ContainerOrBuilder
    */
   int getPortsCount();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -388,10 +320,9 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List getPortsOrBuilderList();
+  java.util.List 
+      getPortsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -402,21 +333,19 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List getVolumeMountsList(); + java.util.List + getVolumeMountsList(); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -425,8 +354,6 @@ public interface ContainerOrBuilder */ com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -435,24 +362,21 @@ public interface ContainerOrBuilder */ int getVolumeMountsCount(); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List + java.util.List getVolumeMountsOrBuilderList(); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index); + com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( + int index); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java similarity index 71% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java index 2413f62..e44745f 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * ContainerPort represents a network port in a single container.
  * 
* * Protobuf type {@code google.cloud.run.v2.ContainerPort} */ -public final class ContainerPort extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ContainerPort extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ContainerPort) ContainerPortOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ContainerPort.newBuilder() to construct. private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ContainerPort() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContainerPort(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ContainerPort( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private ContainerPort( 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 24: - { - containerPort_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 24: { + + containerPort_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,40 +78,35 @@ private ContainerPort( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ContainerPort_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ContainerPort.class, - com.google.cloud.run.v2.ContainerPort.Builder.class); + com.google.cloud.run.v2.ContainerPort.class, com.google.cloud.run.v2.ContainerPort.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * 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; } } /** - * - * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * 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 CONTAINER_PORT_FIELD_NUMBER = 3; private int containerPort_; /** - * - * *
    * Port number the container listens on.
    * This must be a valid TCP port number, 0 < container_port < 65536.
    * 
* * int32 container_port = 3; - * * @return The containerPort. */ @java.lang.Override @@ -189,7 +163,6 @@ public int getContainerPort() { } 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 (containerPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, containerPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, containerPort_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,15 +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.run.v2.ContainerPort)) { return super.equals(obj); } com.google.cloud.run.v2.ContainerPort other = (com.google.cloud.run.v2.ContainerPort) obj; - if (!getName().equals(other.getName())) return false; - if (getContainerPort() != other.getContainerPort()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getContainerPort() + != other.getContainerPort()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,126 +237,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ContainerPort parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ContainerPort parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.ContainerPort parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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; } /** - * - * *
    * ContainerPort represents a network port in a single container.
    * 
* * Protobuf type {@code google.cloud.run.v2.ContainerPort} */ - 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.run.v2.ContainerPort) com.google.cloud.run.v2.ContainerPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ContainerPort_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ContainerPort.class, - com.google.cloud.run.v2.ContainerPort.Builder.class); + com.google.cloud.run.v2.ContainerPort.class, com.google.cloud.run.v2.ContainerPort.Builder.class); } // Construct using com.google.cloud.run.v2.ContainerPort.newBuilder() @@ -387,15 +356,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(); @@ -407,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ContainerPort_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override @@ -428,8 +398,7 @@ public com.google.cloud.run.v2.ContainerPort build() { @java.lang.Override public com.google.cloud.run.v2.ContainerPort buildPartial() { - com.google.cloud.run.v2.ContainerPort result = - new com.google.cloud.run.v2.ContainerPort(this); + com.google.cloud.run.v2.ContainerPort result = new com.google.cloud.run.v2.ContainerPort(this); result.name_ = name_; result.containerPort_ = containerPort_; onBuilt(); @@ -440,39 +409,38 @@ public com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort) { - return mergeFrom((com.google.cloud.run.v2.ContainerPort) other); + return mergeFrom((com.google.cloud.run.v2.ContainerPort)other); } else { super.mergeFrom(other); return this; @@ -519,21 +487,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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; @@ -542,22 +508,21 @@ public java.lang.String getName() { } } /** - * - * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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 { @@ -565,80 +530,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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; } /** - * - * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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 int containerPort_; + private int containerPort_ ; /** - * - * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; - * * @return The containerPort. */ @java.lang.Override @@ -646,45 +601,39 @@ public int getContainerPort() { return containerPort_; } /** - * - * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; - * * @param value The containerPort to set. * @return This builder for chaining. */ public Builder setContainerPort(int value) { - + containerPort_ = value; onChanged(); return this; } /** - * - * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; - * * @return This builder for chaining. */ public Builder clearContainerPort() { - + containerPort_ = 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); } @@ -694,12 +643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ContainerPort) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ContainerPort) private static final com.google.cloud.run.v2.ContainerPort DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ContainerPort(); } @@ -708,16 +657,16 @@ public static com.google.cloud.run.v2.ContainerPort getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerPort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerPort(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +681,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ContainerPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java similarity index 56% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java index 20e42eb..10acaad 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ContainerPortOrBuilder - extends +public interface ContainerPortOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ContainerPort) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Port number the container listens on.
    * This must be a valid TCP port number, 0 < container_port < 65536.
    * 
* * int32 container_port = 3; - * * @return The containerPort. */ int getContainerPort(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java index d03f95d..b3419ed 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for creating a Service.
  * 
* * Protobuf type {@code google.cloud.run.v2.CreateServiceRequest} */ -public final class CreateServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CreateServiceRequest) CreateServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateServiceRequest.newBuilder() to construct. private CreateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateServiceRequest() { parent_ = ""; serviceId_ = ""; @@ -44,15 +26,16 @@ private CreateServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,47 +54,43 @@ private CreateServiceRequest( 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.run.v2.Service.Builder subBuilder = null; + if (service_ != null) { + subBuilder = service_.toBuilder(); } - case 18: - { - com.google.cloud.run.v2.Service.Builder subBuilder = null; - if (service_ != null) { - subBuilder = service_.toBuilder(); - } - service_ = - input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(service_); - service_ = subBuilder.buildPartial(); - } - - break; + service_ = input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(service_); + service_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - serviceId_ = s; - break; - } - case 32: - { - validateOnly_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceId_ = s; + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,42 +98,35 @@ private CreateServiceRequest( } 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.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateServiceRequest.class, - com.google.cloud.run.v2.CreateServiceRequest.Builder.class); + com.google.cloud.run.v2.CreateServiceRequest.class, com.google.cloud.run.v2.CreateServiceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 @@ -163,32 +135,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 location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 { @@ -199,15 +169,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SERVICE_FIELD_NUMBER = 2; private com.google.cloud.run.v2.Service service_; /** - * - * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ @java.lang.Override @@ -215,15 +181,11 @@ public boolean hasService() { return service_ != null; } /** - * - * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ @java.lang.Override @@ -231,14 +193,11 @@ public com.google.cloud.run.v2.Service getService() { return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } /** - * - * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { @@ -248,15 +207,12 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int SERVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object serviceId_; /** - * - * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceId. */ @java.lang.Override @@ -265,30 +221,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** - * - * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -299,15 +255,12 @@ public com.google.protobuf.ByteString getServiceIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_; /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or creating any resources.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -316,7 +269,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +280,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_); } @@ -354,13 +307,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (service_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getService()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -370,21 +325,24 @@ 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.run.v2.CreateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.CreateServiceRequest other = - (com.google.cloud.run.v2.CreateServiceRequest) obj; + com.google.cloud.run.v2.CreateServiceRequest other = (com.google.cloud.run.v2.CreateServiceRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; } - if (!getServiceId().equals(other.getServiceId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getServiceId() + .equals(other.getServiceId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,133 +363,125 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.CreateServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.CreateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.CreateServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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 message for creating a Service.
    * 
* * Protobuf type {@code google.cloud.run.v2.CreateServiceRequest} */ - 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.run.v2.CreateServiceRequest) com.google.cloud.run.v2.CreateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateServiceRequest.class, - com.google.cloud.run.v2.CreateServiceRequest.Builder.class); + com.google.cloud.run.v2.CreateServiceRequest.class, com.google.cloud.run.v2.CreateServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.CreateServiceRequest.newBuilder() @@ -539,15 +489,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(); @@ -567,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override @@ -588,8 +539,7 @@ public com.google.cloud.run.v2.CreateServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.CreateServiceRequest buildPartial() { - com.google.cloud.run.v2.CreateServiceRequest result = - new com.google.cloud.run.v2.CreateServiceRequest(this); + com.google.cloud.run.v2.CreateServiceRequest result = new com.google.cloud.run.v2.CreateServiceRequest(this); result.parent_ = parent_; if (serviceBuilder_ == null) { result.service_ = service_; @@ -606,39 +556,38 @@ public com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.CreateServiceRequest) other); + return mergeFrom((com.google.cloud.run.v2.CreateServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -692,23 +641,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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; @@ -717,24 +662,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 { @@ -742,70 +684,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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; @@ -813,35 +742,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.run.v2.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> - serviceBuilder_; + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> serviceBuilder_; /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ public com.google.cloud.run.v2.Service getService() { @@ -852,14 +770,11 @@ public com.google.cloud.run.v2.Service getService() { } } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { @@ -875,16 +790,14 @@ public Builder setService(com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setService( + com.google.cloud.run.v2.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); @@ -895,20 +808,17 @@ public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValu return this; } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = - com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } @@ -920,14 +830,11 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearService() { if (serviceBuilder_ == null) { @@ -941,59 +848,48 @@ public Builder clearService() { return this; } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? + com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** - * - * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), + getParentForChildren(), + isClean()); service_ = null; } return serviceBuilder_; @@ -1001,21 +897,19 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private java.lang.Object serviceId_ = ""; /** - * - * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -1024,22 +918,21 @@ public java.lang.String getServiceId() { } } /** - * - * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -1047,80 +940,70 @@ public com.google.protobuf.ByteString getServiceIdBytes() { } } /** - * - * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId(java.lang.String value) { + public Builder setServiceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearServiceId() { - + serviceId_ = getDefaultInstance().getServiceId(); onChanged(); return this; } /** - * - * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { + public Builder setServiceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceId_ = value; onChanged(); return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1128,45 +1011,39 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = 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); } @@ -1176,12 +1053,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CreateServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CreateServiceRequest) private static final com.google.cloud.run.v2.CreateServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.CreateServiceRequest(); } @@ -1190,16 +1067,16 @@ public static com.google.cloud.run.v2.CreateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1214,4 +1091,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java index f55c7a4..bd98230 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java @@ -1,134 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface CreateServiceRequestOrBuilder - extends +public interface CreateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CreateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ boolean hasService(); /** - * - * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ com.google.cloud.run.v2.Service getService(); /** - * - * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** - * - * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceId. */ java.lang.String getServiceId(); /** - * - * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString getServiceIdBytes(); + com.google.protobuf.ByteString + getServiceIdBytes(); /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or creating any resources.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java index 0062cca..c86f814 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for deleting a retired Revision.
  * Revision lifecycle is usually managed by making changes to the parent
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.DeleteRevisionRequest}
  */
-public final class DeleteRevisionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteRevisionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteRevisionRequest)
     DeleteRevisionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteRevisionRequest.newBuilder() to construct.
   private DeleteRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteRevisionRequest() {
     name_ = "";
     etag_ = "";
@@ -46,15 +28,16 @@ private DeleteRevisionRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteRevisionRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteRevisionRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,30 @@ private DeleteRevisionRequest(
           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:
-            {
-              validateOnly_ = input.readBool();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 16: {
 
-              etag_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            validateOnly_ = input.readBool();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,43 +87,36 @@ private DeleteRevisionRequest(
     } 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.run.v2.RevisionProto
-        .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.RevisionProto
-        .internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.DeleteRevisionRequest.class,
-            com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
+            com.google.cloud.run.v2.DeleteRevisionRequest.class, com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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 @@ -151,33 +125,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 Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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 { @@ -188,15 +160,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_; /** - * - * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -207,15 +176,12 @@ public boolean getValidateOnly() { public static final int ETAG_FIELD_NUMBER = 3; private volatile java.lang.Object etag_; /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -224,30 +190,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -256,7 +222,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,7 +257,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -304,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.run.v2.DeleteRevisionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.DeleteRevisionRequest other = - (com.google.cloud.run.v2.DeleteRevisionRequest) obj; + com.google.cloud.run.v2.DeleteRevisionRequest other = (com.google.cloud.run.v2.DeleteRevisionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -329,7 +298,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -337,104 +307,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteRevisionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.DeleteRevisionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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 message for deleting a retired Revision.
    * Revision lifecycle is usually managed by making changes to the parent
@@ -443,23 +406,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.DeleteRevisionRequest}
    */
-  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.run.v2.DeleteRevisionRequest)
       com.google.cloud.run.v2.DeleteRevisionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.DeleteRevisionRequest.class,
-              com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
+              com.google.cloud.run.v2.DeleteRevisionRequest.class, com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.DeleteRevisionRequest.newBuilder()
@@ -467,15 +428,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();
@@ -489,9 +451,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -510,8 +472,7 @@ public com.google.cloud.run.v2.DeleteRevisionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.DeleteRevisionRequest buildPartial() {
-      com.google.cloud.run.v2.DeleteRevisionRequest result =
-          new com.google.cloud.run.v2.DeleteRevisionRequest(this);
+      com.google.cloud.run.v2.DeleteRevisionRequest result = new com.google.cloud.run.v2.DeleteRevisionRequest(this);
       result.name_ = name_;
       result.validateOnly_ = validateOnly_;
       result.etag_ = etag_;
@@ -523,39 +484,38 @@ public com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest) {
-        return mergeFrom((com.google.cloud.run.v2.DeleteRevisionRequest) other);
+        return mergeFrom((com.google.cloud.run.v2.DeleteRevisionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -606,24 +566,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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; @@ -632,25 +588,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 { @@ -658,89 +611,73 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -748,38 +685,32 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -787,21 +718,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -810,22 +739,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -833,71 +761,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -907,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteRevisionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteRevisionRequest) private static final com.google.cloud.run.v2.DeleteRevisionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteRevisionRequest(); } @@ -921,16 +842,16 @@ public static com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRevisionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRevisionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRevisionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java index 52965f1..acff02d 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java @@ -1,99 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision.proto package com.google.cloud.run.v2; -public interface DeleteRevisionRequestOrBuilder - extends +public interface DeleteRevisionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteRevisionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java index e129597..c52e945 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message to delete a Service by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.DeleteServiceRequest} */ -public final class DeleteServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteServiceRequest) DeleteServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteServiceRequest.newBuilder() to construct. private DeleteServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteServiceRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private DeleteServiceRequest( 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: - { - validateOnly_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + validateOnly_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private DeleteServiceRequest( } 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.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteServiceRequest.class, - com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); + com.google.cloud.run.v2.DeleteServiceRequest.class, com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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 @@ -148,32 +122,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 full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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 { @@ -184,15 +156,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_; /** - * - * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -203,15 +172,12 @@ public boolean getValidateOnly() { public static final int ETAG_FIELD_NUMBER = 3; private volatile java.lang.Object etag_; /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -220,30 +186,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,7 +253,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -300,17 +267,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.run.v2.DeleteServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.DeleteServiceRequest other = - (com.google.cloud.run.v2.DeleteServiceRequest) obj; + com.google.cloud.run.v2.DeleteServiceRequest other = (com.google.cloud.run.v2.DeleteServiceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,7 +294,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -333,127 +303,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.DeleteServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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 message to delete a Service by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.DeleteServiceRequest} */ - 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.run.v2.DeleteServiceRequest) com.google.cloud.run.v2.DeleteServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteServiceRequest.class, - com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); + com.google.cloud.run.v2.DeleteServiceRequest.class, com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.DeleteServiceRequest.newBuilder() @@ -461,15 +422,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 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override @@ -504,8 +466,7 @@ public com.google.cloud.run.v2.DeleteServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.DeleteServiceRequest buildPartial() { - com.google.cloud.run.v2.DeleteServiceRequest result = - new com.google.cloud.run.v2.DeleteServiceRequest(this); + com.google.cloud.run.v2.DeleteServiceRequest result = new com.google.cloud.run.v2.DeleteServiceRequest(this); result.name_ = name_; result.validateOnly_ = validateOnly_; result.etag_ = etag_; @@ -517,39 +478,38 @@ public com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.DeleteServiceRequest) other); + return mergeFrom((com.google.cloud.run.v2.DeleteServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -600,23 +560,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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; @@ -625,24 +581,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 { @@ -650,86 +603,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -737,38 +674,32 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** - * - * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -776,21 +707,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -799,22 +728,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -822,71 +750,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -896,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteServiceRequest) private static final com.google.cloud.run.v2.DeleteServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteServiceRequest(); } @@ -910,16 +831,16 @@ public static com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +855,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java index 9335704..3ebf529 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java @@ -1,97 +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/run/v2/service.proto package com.google.cloud.run.v2; -public interface DeleteServiceRequestOrBuilder - extends +public interface DeleteServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java similarity index 74% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java index 37cce38..ac9229b 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * EnvVar represents an environment variable present in a Container.
  * 
* * Protobuf type {@code google.cloud.run.v2.EnvVar} */ -public final class EnvVar extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnvVar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.EnvVar) EnvVarOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnvVar.newBuilder() to construct. private EnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnvVar() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnvVar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EnvVar( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,43 +53,39 @@ private EnvVar( 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(); - valuesCase_ = 2; - values_ = s; - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valuesCase_ = 2; + values_ = s; + break; + } + case 26: { + com.google.cloud.run.v2.EnvVarSource.Builder subBuilder = null; + if (valuesCase_ == 3) { + subBuilder = ((com.google.cloud.run.v2.EnvVarSource) values_).toBuilder(); } - case 26: - { - com.google.cloud.run.v2.EnvVarSource.Builder subBuilder = null; - if (valuesCase_ == 3) { - subBuilder = ((com.google.cloud.run.v2.EnvVarSource) values_).toBuilder(); - } - values_ = - input.readMessage( - com.google.cloud.run.v2.EnvVarSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.EnvVarSource) values_); - values_ = subBuilder.buildPartial(); - } - valuesCase_ = 3; - break; + values_ = + input.readMessage(com.google.cloud.run.v2.EnvVarSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.EnvVarSource) values_); + values_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + valuesCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,39 +93,35 @@ private EnvVar( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.EnvVar.class, com.google.cloud.run.v2.EnvVar.Builder.class); } private int valuesCase_ = 0; private java.lang.Object values_; - public enum ValuesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(2), VALUE_SOURCE(3), VALUES_NOT_SET(0); private final int value; - private ValuesCase(int value) { this.value = value; } @@ -162,38 +137,32 @@ public static ValuesCase valueOf(int value) { public static ValuesCase forNumber(int value) { switch (value) { - case 2: - return VALUE; - case 3: - return VALUE_SOURCE; - case 0: - return VALUES_NOT_SET; - default: - return null; + case 2: return VALUE; + case 3: return VALUE_SOURCE; + case 0: return VALUES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValuesCase getValuesCase() { - return ValuesCase.forNumber(valuesCase_); + public ValuesCase + getValuesCase() { + return ValuesCase.forNumber( + valuesCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -202,30 +171,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. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -235,8 +204,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -249,15 +216,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string value = 2; - * * @return Whether the value field is set. */ public boolean hasValue() { return valuesCase_ == 2; } /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -270,7 +234,6 @@ public boolean hasValue() {
    * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { @@ -281,7 +244,8 @@ 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(); if (valuesCase_ == 2) { values_ = s; @@ -290,8 +254,6 @@ public java.lang.String getValue() { } } /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -304,17 +266,18 @@ public java.lang.String getValue() {
    * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (valuesCase_ == 2) { ref = values_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (valuesCase_ == 2) { values_ = b; } @@ -326,14 +289,11 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int VALUE_SOURCE_FIELD_NUMBER = 3; /** - * - * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return Whether the valueSource field is set. */ @java.lang.Override @@ -341,26 +301,21 @@ public boolean hasValueSource() { return valuesCase_ == 3; } /** - * - * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return The valueSource. */ @java.lang.Override public com.google.cloud.run.v2.EnvVarSource getValueSource() { if (valuesCase_ == 3) { - return (com.google.cloud.run.v2.EnvVarSource) values_; + return (com.google.cloud.run.v2.EnvVarSource) values_; } return com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } /** - * - * *
    * Source for the environment variable's value.
    * 
@@ -370,13 +325,12 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { @java.lang.Override public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { if (valuesCase_ == 3) { - return (com.google.cloud.run.v2.EnvVarSource) values_; + return (com.google.cloud.run.v2.EnvVarSource) values_; } return com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +342,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_); } @@ -414,9 +369,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, values_); } if (valuesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.run.v2.EnvVarSource) values_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.run.v2.EnvVarSource) values_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,21 +380,24 @@ 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.run.v2.EnvVar)) { return super.equals(obj); } com.google.cloud.run.v2.EnvVar other = (com.google.cloud.run.v2.EnvVar) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getValuesCase().equals(other.getValuesCase())) return false; switch (valuesCase_) { case 2: - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; break; case 3: - if (!getValueSource().equals(other.getValueSource())) return false; + if (!getValueSource() + .equals(other.getValueSource())) return false; break; case 0: default: @@ -475,123 +432,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.EnvVar parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.EnvVar parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.EnvVar parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.run.v2.EnvVar parseFrom( + com.google.protobuf.CodedInputStream 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.run.v2.EnvVar 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.run.v2.EnvVar 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; } /** - * - * *
    * EnvVar represents an environment variable present in a Container.
    * 
* * Protobuf type {@code google.cloud.run.v2.EnvVar} */ - 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.run.v2.EnvVar) com.google.cloud.run.v2.EnvVarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.EnvVar.class, com.google.cloud.run.v2.EnvVar.Builder.class); } @@ -601,15 +551,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(); @@ -621,9 +572,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVar_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override @@ -663,39 +614,38 @@ public com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar) { - return mergeFrom((com.google.cloud.run.v2.EnvVar) other); + return mergeFrom((com.google.cloud.run.v2.EnvVar)other); } else { super.mergeFrom(other); return this; @@ -709,22 +659,19 @@ public Builder mergeFrom(com.google.cloud.run.v2.EnvVar other) { onChanged(); } switch (other.getValuesCase()) { - case VALUE: - { - valuesCase_ = 2; - values_ = other.values_; - onChanged(); - break; - } - case VALUE_SOURCE: - { - mergeValueSource(other.getValueSource()); - break; - } - case VALUES_NOT_SET: - { - break; - } + case VALUE: { + valuesCase_ = 2; + values_ = other.values_; + onChanged(); + break; + } + case VALUE_SOURCE: { + mergeValueSource(other.getValueSource()); + break; + } + case VALUES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -754,12 +701,12 @@ public Builder mergeFrom( } return this; } - private int valuesCase_ = 0; private java.lang.Object values_; - - public ValuesCase getValuesCase() { - return ValuesCase.forNumber(valuesCase_); + public ValuesCase + getValuesCase() { + return ValuesCase.forNumber( + valuesCase_); } public Builder clearValues() { @@ -769,23 +716,22 @@ public Builder clearValues() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -794,22 +740,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -817,72 +762,63 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -895,7 +831,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -903,8 +838,6 @@ public boolean hasValue() { return valuesCase_ == 2; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -917,7 +850,6 @@ public boolean hasValue() {
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -927,7 +859,8 @@ public java.lang.String getValue() { ref = values_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (valuesCase_ == 2) { values_ = s; @@ -938,8 +871,6 @@ public java.lang.String getValue() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -952,18 +883,19 @@ public java.lang.String getValue() {
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (valuesCase_ == 2) { ref = values_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (valuesCase_ == 2) { values_ = b; } @@ -973,8 +905,6 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -987,22 +917,20 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * string value = 2; - * * @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(); - } - valuesCase_ = 2; + throw new NullPointerException(); + } + valuesCase_ = 2; values_ = value; onChanged(); return this; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -1015,7 +943,6 @@ public Builder setValue(java.lang.String value) {
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1027,8 +954,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -1041,15 +966,15 @@ public Builder clearValue() {
      * 
* * string value = 2; - * * @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); valuesCase_ = 2; values_ = value; onChanged(); @@ -1057,19 +982,13 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, - com.google.cloud.run.v2.EnvVarSource.Builder, - com.google.cloud.run.v2.EnvVarSourceOrBuilder> - valueSourceBuilder_; + com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder> valueSourceBuilder_; /** - * - * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return Whether the valueSource field is set. */ @java.lang.Override @@ -1077,14 +996,11 @@ public boolean hasValueSource() { return valuesCase_ == 3; } /** - * - * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return The valueSource. */ @java.lang.Override @@ -1102,8 +1018,6 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1124,15 +1038,14 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; */ - public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder builderForValue) { + public Builder setValueSource( + com.google.cloud.run.v2.EnvVarSource.Builder builderForValue) { if (valueSourceBuilder_ == null) { values_ = builderForValue.build(); onChanged(); @@ -1143,8 +1056,6 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder build return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1153,13 +1064,10 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder build */ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { if (valueSourceBuilder_ == null) { - if (valuesCase_ == 3 - && values_ != com.google.cloud.run.v2.EnvVarSource.getDefaultInstance()) { - values_ = - com.google.cloud.run.v2.EnvVarSource.newBuilder( - (com.google.cloud.run.v2.EnvVarSource) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 3 && + values_ != com.google.cloud.run.v2.EnvVarSource.getDefaultInstance()) { + values_ = com.google.cloud.run.v2.EnvVarSource.newBuilder((com.google.cloud.run.v2.EnvVarSource) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -1175,8 +1083,6 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1200,8 +1106,6 @@ public Builder clearValueSource() { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1212,8 +1116,6 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1232,8 +1134,6 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1241,30 +1141,26 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { * .google.cloud.run.v2.EnvVarSource value_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, - com.google.cloud.run.v2.EnvVarSource.Builder, - com.google.cloud.run.v2.EnvVarSourceOrBuilder> + com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder> getValueSourceFieldBuilder() { if (valueSourceBuilder_ == null) { if (!(valuesCase_ == 3)) { values_ = com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } - valueSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, - com.google.cloud.run.v2.EnvVarSource.Builder, - com.google.cloud.run.v2.EnvVarSourceOrBuilder>( - (com.google.cloud.run.v2.EnvVarSource) values_, getParentForChildren(), isClean()); + valueSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder>( + (com.google.cloud.run.v2.EnvVarSource) values_, + getParentForChildren(), + isClean()); values_ = null; } valuesCase_ = 3; - onChanged(); - ; + onChanged();; return valueSourceBuilder_; } - @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); } @@ -1274,12 +1170,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.EnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.EnvVar) private static final com.google.cloud.run.v2.EnvVar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.EnvVar(); } @@ -1288,16 +1184,16 @@ public static com.google.cloud.run.v2.EnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1208,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java similarity index 80% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java index b0c1be0..f0bc095 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface EnvVarOrBuilder - extends +public interface EnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.EnvVar) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -65,13 +42,10 @@ public interface EnvVarOrBuilder
    * 
* * string value = 2; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -84,13 +58,10 @@ public interface EnvVarOrBuilder
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -103,38 +74,30 @@ public interface EnvVarOrBuilder
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return Whether the valueSource field is set. */ boolean hasValueSource(); /** - * - * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; - * * @return The valueSource. */ com.google.cloud.run.v2.EnvVarSource getValueSource(); /** - * - * *
    * Source for the environment variable's value.
    * 
diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java index 287e024..d042926 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * EnvVarSource represents a source for the value of an EnvVar.
  * 
* * Protobuf type {@code google.cloud.run.v2.EnvVarSource} */ -public final class EnvVarSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnvVarSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.EnvVarSource) EnvVarSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnvVarSource.newBuilder() to construct. private EnvVarSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private EnvVarSource() {} + private EnvVarSource() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnvVarSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EnvVarSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private EnvVarSource( case 0: done = true; break; - case 10: - { - com.google.cloud.run.v2.SecretKeySelector.Builder subBuilder = null; - if (secretKeyRef_ != null) { - subBuilder = secretKeyRef_.toBuilder(); - } - secretKeyRef_ = - input.readMessage( - com.google.cloud.run.v2.SecretKeySelector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secretKeyRef_); - secretKeyRef_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.run.v2.SecretKeySelector.Builder subBuilder = null; + if (secretKeyRef_ != null) { + subBuilder = secretKeyRef_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + secretKeyRef_ = input.readMessage(com.google.cloud.run.v2.SecretKeySelector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secretKeyRef_); + secretKeyRef_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private EnvVarSource( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.EnvVarSource.class, - com.google.cloud.run.v2.EnvVarSource.Builder.class); + com.google.cloud.run.v2.EnvVarSource.class, com.google.cloud.run.v2.EnvVarSource.Builder.class); } public static final int SECRET_KEY_REF_FIELD_NUMBER = 1; private com.google.cloud.run.v2.SecretKeySelector secretKeyRef_; /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return Whether the secretKeyRef field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasSecretKeyRef() { return secretKeyRef_ != null; } /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return The secretKeyRef. */ @java.lang.Override public com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef() { - return secretKeyRef_ == null - ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() - : secretKeyRef_; + return secretKeyRef_ == null ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +149,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 (secretKeyRef_ != null) { output.writeMessage(1, getSecretKeyRef()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (secretKeyRef_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecretKeyRef()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSecretKeyRef()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,7 +175,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.run.v2.EnvVarSource)) { return super.equals(obj); @@ -214,7 +184,8 @@ public boolean equals(final java.lang.Object obj) { if (hasSecretKeyRef() != other.hasSecretKeyRef()) return false; if (hasSecretKeyRef()) { - if (!getSecretKeyRef().equals(other.getSecretKeyRef())) return false; + if (!getSecretKeyRef() + .equals(other.getSecretKeyRef())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -236,126 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.EnvVarSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.EnvVarSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.EnvVarSource parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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; } /** - * - * *
    * EnvVarSource represents a source for the value of an EnvVar.
    * 
* * Protobuf type {@code google.cloud.run.v2.EnvVarSource} */ - 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.run.v2.EnvVarSource) com.google.cloud.run.v2.EnvVarSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.EnvVarSource.class, - com.google.cloud.run.v2.EnvVarSource.Builder.class); + com.google.cloud.run.v2.EnvVarSource.class, com.google.cloud.run.v2.EnvVarSource.Builder.class); } // Construct using com.google.cloud.run.v2.EnvVarSource.newBuilder() @@ -363,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(); @@ -385,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override @@ -420,39 +384,38 @@ public com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource) { - return mergeFrom((com.google.cloud.run.v2.EnvVarSource) other); + return mergeFrom((com.google.cloud.run.v2.EnvVarSource)other); } else { super.mergeFrom(other); return this; @@ -495,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.run.v2.SecretKeySelector secretKeyRef_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, - com.google.cloud.run.v2.SecretKeySelector.Builder, - com.google.cloud.run.v2.SecretKeySelectorOrBuilder> - secretKeyRefBuilder_; + com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder> secretKeyRefBuilder_; /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return Whether the secretKeyRef field is set. */ public boolean hasSecretKeyRef() { return secretKeyRefBuilder_ != null || secretKeyRef_ != null; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return The secretKeyRef. */ public com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef() { if (secretKeyRefBuilder_ == null) { - return secretKeyRef_ == null - ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() - : secretKeyRef_; + return secretKeyRef_ == null ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } else { return secretKeyRefBuilder_.getMessage(); } } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -556,8 +506,6 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -576,8 +524,6 @@ public Builder setSecretKeyRef( return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -588,9 +534,7 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value if (secretKeyRefBuilder_ == null) { if (secretKeyRef_ != null) { secretKeyRef_ = - com.google.cloud.run.v2.SecretKeySelector.newBuilder(secretKeyRef_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.SecretKeySelector.newBuilder(secretKeyRef_).mergeFrom(value).buildPartial(); } else { secretKeyRef_ = value; } @@ -602,8 +546,6 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -622,8 +564,6 @@ public Builder clearSecretKeyRef() { return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -631,13 +571,11 @@ public Builder clearSecretKeyRef() { * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; */ public com.google.cloud.run.v2.SecretKeySelector.Builder getSecretKeyRefBuilder() { - + onChanged(); return getSecretKeyRefFieldBuilder().getBuilder(); } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -648,14 +586,11 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild if (secretKeyRefBuilder_ != null) { return secretKeyRefBuilder_.getMessageOrBuilder(); } else { - return secretKeyRef_ == null - ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() - : secretKeyRef_; + return secretKeyRef_ == null ? + com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -663,24 +598,21 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, - com.google.cloud.run.v2.SecretKeySelector.Builder, - com.google.cloud.run.v2.SecretKeySelectorOrBuilder> + com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder> getSecretKeyRefFieldBuilder() { if (secretKeyRefBuilder_ == null) { - secretKeyRefBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, - com.google.cloud.run.v2.SecretKeySelector.Builder, - com.google.cloud.run.v2.SecretKeySelectorOrBuilder>( - getSecretKeyRef(), getParentForChildren(), isClean()); + secretKeyRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder>( + getSecretKeyRef(), + getParentForChildren(), + isClean()); secretKeyRef_ = null; } return secretKeyRefBuilder_; } - @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); } @@ -690,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.EnvVarSource) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.EnvVarSource) private static final com.google.cloud.run.v2.EnvVarSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.EnvVarSource(); } @@ -704,16 +636,16 @@ public static com.google.cloud.run.v2.EnvVarSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvVarSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvVarSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvVarSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvVarSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVarSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java similarity index 61% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java index 16d2f24..7209c61 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface EnvVarSourceOrBuilder - extends +public interface EnvVarSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.EnvVarSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return Whether the secretKeyRef field is set. */ boolean hasSecretKeyRef(); /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; - * * @return The secretKeyRef. */ com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef(); /** - * - * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java index f2d5273..cbf1723 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** - * - * *
  * Alternatives for execution environments.
  * 
* * Protobuf enum {@code google.cloud.run.v2.ExecutionEnvironment} */ -public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionEnvironment + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified
    * 
@@ -39,8 +21,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ EXECUTION_ENVIRONMENT_UNSPECIFIED(0), /** - * - * *
    * Uses the First Generation environment.
    * 
@@ -49,8 +29,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ EXECUTION_ENVIRONMENT_GEN1(1), /** - * - * *
    * Uses Second Generation environment.
    * 
@@ -62,8 +40,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE ; /** - * - * *
    * Unspecified
    * 
@@ -72,8 +48,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Uses the First Generation environment.
    * 
@@ -82,8 +56,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_GEN1_VALUE = 1; /** - * - * *
    * Uses Second Generation environment.
    * 
@@ -92,6 +64,7 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_GEN2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,14 +89,10 @@ public static ExecutionEnvironment valueOf(int value) { */ public static ExecutionEnvironment forNumber(int value) { switch (value) { - case 0: - return EXECUTION_ENVIRONMENT_UNSPECIFIED; - case 1: - return EXECUTION_ENVIRONMENT_GEN1; - case 2: - return EXECUTION_ENVIRONMENT_GEN2; - default: - return null; + case 0: return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: return EXECUTION_ENVIRONMENT_GEN1; + case 2: return EXECUTION_ENVIRONMENT_GEN2; + default: return null; } } @@ -131,28 +100,28 @@ public static ExecutionEnvironment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionEnvironment findValueByNumber(int number) { - return ExecutionEnvironment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionEnvironment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionEnvironment findValueByNumber(int number) { + return ExecutionEnvironment.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.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(1); } @@ -161,7 +130,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExecutionEnvironment 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; @@ -177,3 +147,4 @@ private ExecutionEnvironment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ExecutionEnvironment) } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java similarity index 66% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java index dd3aad3..5e1933d 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for obtaining a Revision by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetRevisionRequest} */ -public final class GetRevisionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRevisionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetRevisionRequest) GetRevisionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRevisionRequest.newBuilder() to construct. private GetRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRevisionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRevisionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetRevisionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetRevisionRequest( 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,43 +73,36 @@ private GetRevisionRequest( } 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.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetRevisionRequest.class, - com.google.cloud.run.v2.GetRevisionRequest.Builder.class); + com.google.cloud.run.v2.GetRevisionRequest.class, com.google.cloud.run.v2.GetRevisionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full name of the Revision.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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 @@ -136,33 +111,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 full name of the Revision.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * - * 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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,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.run.v2.GetRevisionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.GetRevisionRequest other = - (com.google.cloud.run.v2.GetRevisionRequest) obj; + com.google.cloud.run.v2.GetRevisionRequest other = (com.google.cloud.run.v2.GetRevisionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,127 +207,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetRevisionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.GetRevisionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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 message for obtaining a Revision by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetRevisionRequest} */ - 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.run.v2.GetRevisionRequest) com.google.cloud.run.v2.GetRevisionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetRevisionRequest.class, - com.google.cloud.run.v2.GetRevisionRequest.Builder.class); + com.google.cloud.run.v2.GetRevisionRequest.class, com.google.cloud.run.v2.GetRevisionRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetRevisionRequest.newBuilder() @@ -362,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(); @@ -380,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.run.v2.GetRevisionRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetRevisionRequest buildPartial() { - com.google.cloud.run.v2.GetRevisionRequest result = - new com.google.cloud.run.v2.GetRevisionRequest(this); + com.google.cloud.run.v2.GetRevisionRequest result = new com.google.cloud.run.v2.GetRevisionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest) { - return mergeFrom((com.google.cloud.run.v2.GetRevisionRequest) other); + return mergeFrom((com.google.cloud.run.v2.GetRevisionRequest)other); } else { super.mergeFrom(other); return this; @@ -488,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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; @@ -514,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 { @@ -540,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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 full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * - * 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); } @@ -623,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetRevisionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetRevisionRequest) private static final com.google.cloud.run.v2.GetRevisionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetRevisionRequest(); } @@ -637,16 +580,16 @@ public static com.google.cloud.run.v2.GetRevisionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRevisionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRevisionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRevisionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java new file mode 100644 index 0000000..81c3a8f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public interface GetRevisionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Revision.
+   * Format:
+   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full name of the Revision.
+   * Format:
+   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
+   * 
+ * + * 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-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java similarity index 65% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java index 03a8bae..8435db3 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for obtaining a Service by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetServiceRequest} */ -public final class GetServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetServiceRequest) GetServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServiceRequest.newBuilder() to construct. private GetServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetServiceRequest( 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 GetServiceRequest( } 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.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetServiceRequest.class, - com.google.cloud.run.v2.GetServiceRequest.Builder.class); + com.google.cloud.run.v2.GetServiceRequest.class, com.google.cloud.run.v2.GetServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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 full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * - * 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.run.v2.GetServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.GetServiceRequest other = - (com.google.cloud.run.v2.GetServiceRequest) obj; + com.google.cloud.run.v2.GetServiceRequest other = (com.google.cloud.run.v2.GetServiceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.GetServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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 message for obtaining a Service by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetServiceRequest} */ - 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.run.v2.GetServiceRequest) com.google.cloud.run.v2.GetServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetServiceRequest.class, - com.google.cloud.run.v2.GetServiceRequest.Builder.class); + com.google.cloud.run.v2.GetServiceRequest.class, com.google.cloud.run.v2.GetServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetServiceRequest.newBuilder() @@ -360,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(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.run.v2.GetServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetServiceRequest buildPartial() { - com.google.cloud.run.v2.GetServiceRequest result = - new com.google.cloud.run.v2.GetServiceRequest(this); + com.google.cloud.run.v2.GetServiceRequest result = new com.google.cloud.run.v2.GetServiceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.GetServiceRequest) other); + return mergeFrom((com.google.cloud.run.v2.GetServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * - * 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); } @@ -616,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetServiceRequest) private static final com.google.cloud.run.v2.GetServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetServiceRequest(); } @@ -630,16 +573,16 @@ public static com.google.cloud.run.v2.GetServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java new file mode 100644 index 0000000..1e8c5a8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/service.proto + +package com.google.cloud.run.v2; + +public interface GetServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Service.
+   * Format: projects/{projectnumber}/locations/{location}/services/{service}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full name of the Service.
+   * Format: projects/{projectnumber}/locations/{location}/services/{service}
+   * 
+ * + * 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-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java similarity index 68% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java index 36c0d0b..5b0728c 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** - * - * *
  * Allowed ingress traffic for the Container.
  * 
* * Protobuf enum {@code google.cloud.run.v2.IngressTraffic} */ -public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { +public enum IngressTraffic + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified
    * 
@@ -39,8 +21,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_TRAFFIC_UNSPECIFIED(0), /** - * - * *
    * All inbound traffic is allowed.
    * 
@@ -49,8 +29,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_TRAFFIC_ALL(1), /** - * - * *
    * Only internal traffic is allowed.
    * 
@@ -59,8 +37,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_TRAFFIC_INTERNAL_ONLY(2), /** - * - * *
    * Both internal and Google Cloud Load Balancer traffic is allowed.
    * 
@@ -72,8 +48,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified
    * 
@@ -82,8 +56,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_TRAFFIC_UNSPECIFIED_VALUE = 0; /** - * - * *
    * All inbound traffic is allowed.
    * 
@@ -92,8 +64,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_TRAFFIC_ALL_VALUE = 1; /** - * - * *
    * Only internal traffic is allowed.
    * 
@@ -102,8 +72,6 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_TRAFFIC_INTERNAL_ONLY_VALUE = 2; /** - * - * *
    * Both internal and Google Cloud Load Balancer traffic is allowed.
    * 
@@ -112,6 +80,7 @@ public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,51 +105,50 @@ public static IngressTraffic valueOf(int value) { */ public static IngressTraffic forNumber(int value) { switch (value) { - case 0: - return INGRESS_TRAFFIC_UNSPECIFIED; - case 1: - return INGRESS_TRAFFIC_ALL; - case 2: - return INGRESS_TRAFFIC_INTERNAL_ONLY; - case 3: - return INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER; - default: - return null; + case 0: return INGRESS_TRAFFIC_UNSPECIFIED; + case 1: return INGRESS_TRAFFIC_ALL; + case 2: return INGRESS_TRAFFIC_INTERNAL_ONLY; + case 3: return INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER; + 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 IngressTraffic findValueByNumber(int number) { - return IngressTraffic.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + IngressTraffic> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressTraffic findValueByNumber(int number) { + return IngressTraffic.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.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(0); } private static final IngressTraffic[] VALUES = values(); - public static IngressTraffic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static IngressTraffic 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; @@ -196,3 +164,4 @@ private IngressTraffic(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.IngressTraffic) } + diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java new file mode 100644 index 0000000..a906628 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -0,0 +1,226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/k8s.min.proto + +package com.google.cloud.run.v2; + +public final class K8sMinProto { + private K8sMinProto() {} + 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_run_v2_Container_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_EnvVar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ContainerPort_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VolumeMount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Volume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VersionToPath_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CloudSqlInstance_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/run/v2/k8s.min.proto\022\023goo" + + "gle.cloud.run.v2\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\"\240\002\n" + + "\tContainer\022\014\n\004name\030\001 \001(\t\022\022\n\005image\030\002 \001(\tB" + + "\003\340A\002\022\017\n\007command\030\003 \003(\t\022\014\n\004args\030\004 \003(\t\022(\n\003e" + + "nv\030\005 \003(\0132\033.google.cloud.run.v2.EnvVar\022<\n" + + "\tresources\030\006 \001(\0132).google.cloud.run.v2.R" + + "esourceRequirements\0221\n\005ports\030\007 \003(\0132\".goo" + + "gle.cloud.run.v2.ContainerPort\0227\n\rvolume" + + "_mounts\030\010 \003(\0132 .google.cloud.run.v2.Volu" + + "meMount\"\236\001\n\024ResourceRequirements\022E\n\006limi" + + "ts\030\001 \003(\01325.google.cloud.run.v2.ResourceR" + + "equirements.LimitsEntry\022\020\n\010cpu_idle\030\002 \001(" + + "\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017\n" + + "\005value\030\002 \001(\tH\000\0229\n\014value_source\030\003 \001(\0132!.g" + + "oogle.cloud.run.v2.EnvVarSourceH\000B\010\n\006val" + + "ues\"N\n\014EnvVarSource\022>\n\016secret_key_ref\030\001 " + + "\001(\0132&.google.cloud.run.v2.SecretKeySelec" + + "tor\"\222\001\n\021SecretKeySelector\022;\n\006secret\030\001 \001(" + + "\tB+\340A\002\372A%\n#secretmanager.googleapis.com/" + + "Secret\022@\n\007version\030\002 \001(\tB/\372A,\n*secretmana" + + "ger.googleapis.com/SecretVersion\"5\n\rCont" + + "ainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container_por" + + "t\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volume\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.googl" + + "e.cloud.run.v2.SecretVolumeSourceH\000\022C\n\022c" + + "loud_sql_instance\030\003 \001(\0132%.google.cloud.r" + + "un.v2.CloudSqlInstanceH\000B\r\n\013volume_type\"" + + "r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(\tB\003\340" + + "A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run.v2." + + "VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"A\n\rV" + + "ersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007versi" + + "on\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlInstan" + + "ce\022\021\n\tinstances\030\001 \003(\tB\366\003\n\027com.google.clo" + + "ud.run.v2B\013K8sMinProtoP\001Z6google.golang." + + "org/genproto/googleapis/cloud/run/v2;run" + + "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" + + "projects/{project}/locations/{location}/" + + "keyRings/{key_ring}/cryptoKeys/{crypto_k" + + "ey}\352AJ\n#secretmanager.googleapis.com/Sec" + + "ret\022#projects/{project}/secrets/{secret}" + + "\352Ad\n*secretmanager.googleapis.com/Secret" + + "Version\0226projects/{project}/secrets/{sec" + + "ret}/versions/{version}\352Ad\n\"vpcaccess.go" + + "ogleapis.com/Connector\022>projects/{projec" + + "t}/locations/{location}/connectors/{conn" + + "ector}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_Container_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Container_descriptor, + new java.lang.String[] { "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", }); + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, + new java.lang.String[] { "Limits", "CpuIdle", }); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_EnvVar_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVar_descriptor, + new java.lang.String[] { "Name", "Value", "ValueSource", "Values", }); + internal_static_google_cloud_run_v2_EnvVarSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVarSource_descriptor, + new java.lang.String[] { "SecretKeyRef", }); + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, + new java.lang.String[] { "Secret", "Version", }); + internal_static_google_cloud_run_v2_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ContainerPort_descriptor, + new java.lang.String[] { "Name", "ContainerPort", }); + internal_static_google_cloud_run_v2_VolumeMount_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VolumeMount_descriptor, + new java.lang.String[] { "Name", "MountPath", }); + internal_static_google_cloud_run_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Volume_descriptor, + new java.lang.String[] { "Name", "Secret", "CloudSqlInstance", "VolumeType", }); + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, + new java.lang.String[] { "Secret", "Items", "DefaultMode", }); + internal_static_google_cloud_run_v2_VersionToPath_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VersionToPath_descriptor, + new java.lang.String[] { "Path", "Version", "Mode", }); + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, + new java.lang.String[] { "Instances", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java index 9b81705..8877944 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for retrieving a list of Revisions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsRequest} */ -public final class ListRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRevisionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListRevisionsRequest) ListRevisionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRevisionsRequest.newBuilder() to construct. private ListRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRevisionsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListRevisionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRevisionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRevisionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,37 +54,35 @@ private ListRevisionsRequest( 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 32: - { - showDeleted_ = input.readBool(); - 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; + } + case 32: { + + showDeleted_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,33 +90,29 @@ private ListRevisionsRequest( } 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.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsRequest.class, - com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); + com.google.cloud.run.v2.ListRevisionsRequest.class, com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -143,10 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * - * 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 @@ -155,15 +129,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 Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -171,18 +144,17 @@ public java.lang.String getParent() {
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * - * 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 { @@ -193,14 +165,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of revisions to return in this call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -211,15 +180,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -228,30 +194,30 @@ 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; } } /** - * - * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * 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 { @@ -262,14 +228,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_; /** - * - * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -278,7 +241,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,7 +252,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_); } @@ -316,13 +279,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -332,18 +297,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.run.v2.ListRevisionsRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.ListRevisionsRequest other = - (com.google.cloud.run.v2.ListRevisionsRequest) obj; + com.google.cloud.run.v2.ListRevisionsRequest other = (com.google.cloud.run.v2.ListRevisionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,133 +330,125 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListRevisionsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.ListRevisionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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 message for retrieving a list of Revisions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsRequest} */ - 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.run.v2.ListRevisionsRequest) com.google.cloud.run.v2.ListRevisionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsRequest.class, - com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); + com.google.cloud.run.v2.ListRevisionsRequest.class, com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListRevisionsRequest.newBuilder() @@ -496,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(); @@ -520,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override @@ -541,8 +502,7 @@ public com.google.cloud.run.v2.ListRevisionsRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListRevisionsRequest buildPartial() { - com.google.cloud.run.v2.ListRevisionsRequest result = - new com.google.cloud.run.v2.ListRevisionsRequest(this); + com.google.cloud.run.v2.ListRevisionsRequest result = new com.google.cloud.run.v2.ListRevisionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -555,39 +515,38 @@ public com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest) { - return mergeFrom((com.google.cloud.run.v2.ListRevisionsRequest) other); + return mergeFrom((com.google.cloud.run.v2.ListRevisionsRequest)other); } else { super.mergeFrom(other); return this; @@ -641,8 +600,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -650,16 +607,14 @@ public Builder mergeFrom(
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * - * 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; @@ -668,8 +623,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -677,17 +630,16 @@ public java.lang.String getParent() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * - * 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 { @@ -695,8 +647,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -704,25 +654,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * - * 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 Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -730,21 +676,16 @@ public Builder setParent(java.lang.String value) {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * - * 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 Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -752,34 +693,29 @@ public Builder clearParent() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * - * 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 revisions to return in this call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -787,36 +723,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of revisions to return in this 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 revisions to return in this call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -824,21 +754,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; @@ -847,22 +775,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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 { @@ -870,79 +797,69 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; } /** - * - * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -950,43 +867,37 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; onChanged(); return this; } /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { - + showDeleted_ = 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); } @@ -996,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListRevisionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListRevisionsRequest) private static final com.google.cloud.run.v2.ListRevisionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListRevisionsRequest(); } @@ -1010,16 +921,16 @@ public static com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRevisionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRevisionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRevisionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java index 43da0fd..f2754c9 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.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/run/v2/revision.proto package com.google.cloud.run.v2; -public interface ListRevisionsRequestOrBuilder - extends +public interface ListRevisionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListRevisionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -33,16 +15,11 @@ public interface ListRevisionsRequestOrBuilder
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * - * 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 Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -50,63 +27,50 @@ public interface ListRevisionsRequestOrBuilder
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * - * 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 revisions to return in this call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java similarity index 74% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java index 823d01d..2bcbc5a 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.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/run/v2/revision.proto package com.google.cloud.run.v2; /** - * - * *
  * Response message containing a list of Revisions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsResponse} */ -public final class ListRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRevisionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListRevisionsResponse) ListRevisionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRevisionsResponse.newBuilder() to construct. private ListRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRevisionsResponse() { revisions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListRevisionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRevisionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRevisionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListRevisionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - revisions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - revisions_.add( - input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + revisions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + revisions_.add( + input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListRevisionsResponse( } 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)) { revisions_ = java.util.Collections.unmodifiableList(revisions_); @@ -112,27 +94,22 @@ private ListRevisionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsResponse.class, - com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); + com.google.cloud.run.v2.ListRevisionsResponse.class, com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); } public static final int REVISIONS_FIELD_NUMBER = 1; private java.util.List revisions_; /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -144,8 +121,6 @@ public java.util.List getRevisionsList() { return revisions_; } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -153,13 +128,11 @@ public java.util.List getRevisionsList() { * repeated .google.cloud.run.v2.Revision revisions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRevisionsOrBuilderList() { return revisions_; } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -171,8 +144,6 @@ public int getRevisionsCount() { return revisions_.size(); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -184,8 +155,6 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -193,22 +162,20 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { * repeated .google.cloud.run.v2.Revision revisions = 1; */ @java.lang.Override - public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index) { + public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( + int index) { return revisions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +184,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 indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * 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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,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 < revisions_.size(); i++) { output.writeMessage(1, revisions_.get(i)); } @@ -278,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < revisions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, revisions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, revisions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +259,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.run.v2.ListRevisionsResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListRevisionsResponse other = - (com.google.cloud.run.v2.ListRevisionsResponse) obj; + com.google.cloud.run.v2.ListRevisionsResponse other = (com.google.cloud.run.v2.ListRevisionsResponse) obj; - if (!getRevisionsList().equals(other.getRevisionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getRevisionsList() + .equals(other.getRevisionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListRevisionsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.ListRevisionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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 message containing a list of Revisions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsResponse} */ - 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.run.v2.ListRevisionsResponse) com.google.cloud.run.v2.ListRevisionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsResponse.class, - com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); + com.google.cloud.run.v2.ListRevisionsResponse.class, com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListRevisionsResponse.newBuilder() @@ -451,17 +411,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) { getRevisionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override @@ -498,8 +458,7 @@ public com.google.cloud.run.v2.ListRevisionsResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListRevisionsResponse buildPartial() { - com.google.cloud.run.v2.ListRevisionsResponse result = - new com.google.cloud.run.v2.ListRevisionsResponse(this); + com.google.cloud.run.v2.ListRevisionsResponse result = new com.google.cloud.run.v2.ListRevisionsResponse(this); int from_bitField0_ = bitField0_; if (revisionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse) { - return mergeFrom((com.google.cloud.run.v2.ListRevisionsResponse) other); + return mergeFrom((com.google.cloud.run.v2.ListRevisionsResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListRevisionsResponse other) { revisionsBuilder_ = null; revisions_ = other.revisions_; bitField0_ = (bitField0_ & ~0x00000001); - revisionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRevisionsFieldBuilder() - : null; + revisionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRevisionsFieldBuilder() : null; } else { revisionsBuilder_.addAllMessages(other.revisions_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List revisions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRevisionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { revisions_ = new java.util.ArrayList(revisions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, - com.google.cloud.run.v2.Revision.Builder, - com.google.cloud.run.v2.RevisionOrBuilder> - revisionsBuilder_; + com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder> revisionsBuilder_; /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -655,8 +605,6 @@ public java.util.List getRevisionsList() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -671,8 +619,6 @@ public int getRevisionsCount() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -687,15 +633,14 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { } } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder setRevisions(int index, com.google.cloud.run.v2.Revision value) { + public Builder setRevisions( + int index, com.google.cloud.run.v2.Revision value) { if (revisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,8 +654,6 @@ public Builder setRevisions(int index, com.google.cloud.run.v2.Revision value) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -729,8 +672,6 @@ public Builder setRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -751,15 +692,14 @@ public Builder addRevisions(com.google.cloud.run.v2.Revision value) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder addRevisions(int index, com.google.cloud.run.v2.Revision value) { + public Builder addRevisions( + int index, com.google.cloud.run.v2.Revision value) { if (revisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,15 +713,14 @@ public Builder addRevisions(int index, com.google.cloud.run.v2.Revision value) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder addRevisions(com.google.cloud.run.v2.Revision.Builder builderForValue) { + public Builder addRevisions( + com.google.cloud.run.v2.Revision.Builder builderForValue) { if (revisionsBuilder_ == null) { ensureRevisionsIsMutable(); revisions_.add(builderForValue.build()); @@ -792,8 +731,6 @@ public Builder addRevisions(com.google.cloud.run.v2.Revision.Builder builderForV return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -812,8 +749,6 @@ public Builder addRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -824,7 +759,8 @@ public Builder addAllRevisions( java.lang.Iterable values) { if (revisionsBuilder_ == null) { ensureRevisionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, revisions_); onChanged(); } else { revisionsBuilder_.addAllMessages(values); @@ -832,8 +768,6 @@ public Builder addAllRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -851,8 +785,6 @@ public Builder clearRevisions() { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -870,44 +802,39 @@ public Builder removeRevisions(int index) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.Revision.Builder getRevisionsBuilder(int index) { + public com.google.cloud.run.v2.Revision.Builder getRevisionsBuilder( + int index) { return getRevisionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index) { + public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( + int index) { if (revisionsBuilder_ == null) { - return revisions_.get(index); - } else { + return revisions_.get(index); } else { return revisionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public java.util.List - getRevisionsOrBuilderList() { + public java.util.List + getRevisionsOrBuilderList() { if (revisionsBuilder_ != null) { return revisionsBuilder_.getMessageOrBuilderList(); } else { @@ -915,8 +842,6 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -924,47 +849,42 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index * repeated .google.cloud.run.v2.Revision revisions = 1; */ public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder() { - return getRevisionsFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Revision.getDefaultInstance()); + return getRevisionsFieldBuilder().addBuilder( + com.google.cloud.run.v2.Revision.getDefaultInstance()); } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder(int index) { - return getRevisionsFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Revision.getDefaultInstance()); + public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder( + int index) { + return getRevisionsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Revision.getDefaultInstance()); } /** - * - * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public java.util.List getRevisionsBuilderList() { + public java.util.List + getRevisionsBuilderList() { return getRevisionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, - com.google.cloud.run.v2.Revision.Builder, - com.google.cloud.run.v2.RevisionOrBuilder> + com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder> getRevisionsFieldBuilder() { if (revisionsBuilder_ == null) { - revisionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, - com.google.cloud.run.v2.Revision.Builder, - com.google.cloud.run.v2.RevisionOrBuilder>( - revisions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + revisionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder>( + revisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); revisions_ = null; } return revisionsBuilder_; @@ -972,21 +892,19 @@ public java.util.List getRevisionsBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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; @@ -995,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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 { @@ -1018,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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 indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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; } - @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); } @@ -1092,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListRevisionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListRevisionsResponse) private static final com.google.cloud.run.v2.ListRevisionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListRevisionsResponse(); } @@ -1106,16 +1016,16 @@ public static com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRevisionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRevisionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRevisionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java index 989c91f..6755d07 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.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/run/v2/revision.proto package com.google.cloud.run.v2; -public interface ListRevisionsResponseOrBuilder - extends +public interface ListRevisionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListRevisionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - java.util.List getRevisionsList(); + java.util.List + getRevisionsList(); /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -44,8 +25,6 @@ public interface ListRevisionsResponseOrBuilder */ com.google.cloud.run.v2.Revision getRevisions(int index); /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -54,50 +33,43 @@ public interface ListRevisionsResponseOrBuilder */ int getRevisionsCount(); /** - * - * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - java.util.List getRevisionsOrBuilderList(); + java.util.List + getRevisionsOrBuilderList(); /** - * - * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index); + com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( + int index); /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java index e4d9640..43d1599 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for retrieving a list of Services.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesRequest} */ -public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListServicesRequest) ListServicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListServicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,37 +54,35 @@ private ListServicesRequest( 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 32: - { - showDeleted_ = input.readBool(); - 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; + } + case 32: { + + showDeleted_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,43 +90,36 @@ private ListServicesRequest( } 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.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesRequest.class, - com.google.cloud.run.v2.ListServicesRequest.Builder.class); + com.google.cloud.run.v2.ListServicesRequest.class, com.google.cloud.run.v2.ListServicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 @@ -154,33 +128,31 @@ 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 location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 { @@ -191,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of Services to return in this call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,15 +178,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -226,30 +192,30 @@ 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; } } /** - * - * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * 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 { @@ -260,14 +226,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_; /** - * - * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -276,7 +239,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +250,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_); } @@ -314,13 +277,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,18 +295,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.run.v2.ListServicesRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.ListServicesRequest other = - (com.google.cloud.run.v2.ListServicesRequest) obj; + com.google.cloud.run.v2.ListServicesRequest other = (com.google.cloud.run.v2.ListServicesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -360,133 +328,125 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListServicesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListServicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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 message for retrieving a list of Services.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesRequest} */ - 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.run.v2.ListServicesRequest) com.google.cloud.run.v2.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesRequest.class, - com.google.cloud.run.v2.ListServicesRequest.Builder.class); + com.google.cloud.run.v2.ListServicesRequest.class, com.google.cloud.run.v2.ListServicesRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListServicesRequest.newBuilder() @@ -494,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(); @@ -518,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override @@ -539,8 +500,7 @@ public com.google.cloud.run.v2.ListServicesRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListServicesRequest buildPartial() { - com.google.cloud.run.v2.ListServicesRequest result = - new com.google.cloud.run.v2.ListServicesRequest(this); + com.google.cloud.run.v2.ListServicesRequest result = new com.google.cloud.run.v2.ListServicesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -553,39 +513,38 @@ public com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest) { - return mergeFrom((com.google.cloud.run.v2.ListServicesRequest) other); + return mergeFrom((com.google.cloud.run.v2.ListServicesRequest)other); } else { super.mergeFrom(other); return this; @@ -639,24 +598,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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; @@ -665,25 +620,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 { @@ -691,88 +643,72 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * - * 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 Services to return in this call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -780,36 +716,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Services to return in this 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 Services to return in this call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -817,21 +747,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; @@ -840,22 +768,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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 { @@ -863,79 +790,69 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; } /** - * - * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -943,43 +860,37 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; onChanged(); return this; } /** - * - * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { - + showDeleted_ = 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); } @@ -989,12 +900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListServicesRequest) private static final com.google.cloud.run.v2.ListServicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListServicesRequest(); } @@ -1003,16 +914,16 @@ public static com.google.cloud.run.v2.ListServicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,4 +938,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java index 7128aa4..eba5fc6 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java @@ -1,110 +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/run/v2/service.proto package com.google.cloud.run.v2; -public interface ListServicesRequestOrBuilder - extends +public interface ListServicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * - * 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 Services to return in this call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java similarity index 73% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java index 86a8305..15cba97 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Response message containing a list of Services.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesResponse} */ -public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListServicesResponse) ListServicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListServicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListServicesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - services_.add( - input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + services_.add( + input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListServicesResponse( } 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)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -112,27 +94,22 @@ private ListServicesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesResponse.class, - com.google.cloud.run.v2.ListServicesResponse.Builder.class); + com.google.cloud.run.v2.ListServicesResponse.class, com.google.cloud.run.v2.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; private java.util.List services_; /** - * - * *
    * The resulting list of Services.
    * 
@@ -144,8 +121,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * The resulting list of Services.
    * 
@@ -153,13 +128,11 @@ public java.util.List getServicesList() { * repeated .google.cloud.run.v2.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** - * - * *
    * The resulting list of Services.
    * 
@@ -171,8 +144,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -184,8 +155,6 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -193,22 +162,20 @@ public com.google.cloud.run.v2.Service getServices(int index) { * repeated .google.cloud.run.v2.Service services = 1; */ @java.lang.Override - public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( + int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +184,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 indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * 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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,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 < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -278,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +259,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.run.v2.ListServicesResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListServicesResponse other = - (com.google.cloud.run.v2.ListServicesResponse) obj; + com.google.cloud.run.v2.ListServicesResponse other = (com.google.cloud.run.v2.ListServicesResponse) obj; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListServicesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListServicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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 message containing a list of Services.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesResponse} */ - 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.run.v2.ListServicesResponse) com.google.cloud.run.v2.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesResponse.class, - com.google.cloud.run.v2.ListServicesResponse.Builder.class); + com.google.cloud.run.v2.ListServicesResponse.class, com.google.cloud.run.v2.ListServicesResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListServicesResponse.newBuilder() @@ -451,17 +411,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) { getServicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override @@ -498,8 +458,7 @@ public com.google.cloud.run.v2.ListServicesResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListServicesResponse buildPartial() { - com.google.cloud.run.v2.ListServicesResponse result = - new com.google.cloud.run.v2.ListServicesResponse(this); + com.google.cloud.run.v2.ListServicesResponse result = new com.google.cloud.run.v2.ListServicesResponse(this); int from_bitField0_ = bitField0_; if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse) { - return mergeFrom((com.google.cloud.run.v2.ListServicesResponse) other); + return mergeFrom((com.google.cloud.run.v2.ListServicesResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListServicesResponse other) { servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServicesFieldBuilder() - : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServicesFieldBuilder() : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> - servicesBuilder_; + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> servicesBuilder_; /** - * - * *
      * The resulting list of Services.
      * 
@@ -655,8 +605,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -671,8 +619,6 @@ public int getServicesCount() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -687,15 +633,14 @@ public com.google.cloud.run.v2.Service getServices(int index) { } } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder setServices(int index, com.google.cloud.run.v2.Service value) { + public Builder setServices( + int index, com.google.cloud.run.v2.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,15 +654,14 @@ public Builder setServices(int index, com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder setServices(int index, com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setServices( + int index, com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.set(index, builderForValue.build()); @@ -728,8 +672,6 @@ public Builder setServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -750,15 +692,14 @@ public Builder addServices(com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices(int index, com.google.cloud.run.v2.Service value) { + public Builder addServices( + int index, com.google.cloud.run.v2.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -772,15 +713,14 @@ public Builder addServices(int index, com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices(com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder addServices( + com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -791,15 +731,14 @@ public Builder addServices(com.google.cloud.run.v2.Service.Builder builderForVal return this; } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices(int index, com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder addServices( + int index, com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(index, builderForValue.build()); @@ -810,8 +749,6 @@ public Builder addServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -822,7 +759,8 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -830,8 +768,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -849,8 +785,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -868,44 +802,39 @@ public Builder removeServices(int index) { return this; } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.Service.Builder getServicesBuilder(int index) { + public com.google.cloud.run.v2.Service.Builder getServicesBuilder( + int index) { return getServicesFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( + int index) { if (servicesBuilder_ == null) { - return services_.get(index); - } else { + return services_.get(index); } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -913,8 +842,6 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -922,47 +849,42 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) * repeated .google.cloud.run.v2.Service services = 1; */ public com.google.cloud.run.v2.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Service.getDefaultInstance()); + return getServicesFieldBuilder().addBuilder( + com.google.cloud.run.v2.Service.getDefaultInstance()); } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.Service.Builder addServicesBuilder(int index) { - return getServicesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Service.getDefaultInstance()); + public com.google.cloud.run.v2.Service.Builder addServicesBuilder( + int index) { + return getServicesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Service.getDefaultInstance()); } /** - * - * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public java.util.List getServicesBuilderList() { + public java.util.List + getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder>( - services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( + services_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); services_ = null; } return servicesBuilder_; @@ -970,21 +892,19 @@ public java.util.List getServicesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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; @@ -993,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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 { @@ -1016,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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 indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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; } - @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); } @@ -1090,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListServicesResponse) private static final com.google.cloud.run.v2.ListServicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListServicesResponse(); } @@ -1104,16 +1016,16 @@ public static com.google.cloud.run.v2.ListServicesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java index af2c849..9c9c363 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.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/run/v2/service.proto package com.google.cloud.run.v2; -public interface ListServicesResponseOrBuilder - extends +public interface ListServicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * The resulting list of Services.
    * 
@@ -44,8 +25,6 @@ public interface ListServicesResponseOrBuilder */ com.google.cloud.run.v2.Service getServices(int index); /** - * - * *
    * The resulting list of Services.
    * 
@@ -54,50 +33,43 @@ public interface ListServicesResponseOrBuilder */ int getServicesCount(); /** - * - * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - java.util.List getServicesOrBuilderList(); + java.util.List + getServicesOrBuilderList(); /** - * - * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index); + com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( + int index); /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java similarity index 100% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java similarity index 66% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java index ce645e1..879b0b0 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * ResourceRequirements describes the compute resource requirements.
  * 
* * Protobuf type {@code google.cloud.run.v2.ResourceRequirements} */ -public final class ResourceRequirements extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResourceRequirements extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ResourceRequirements) ResourceRequirementsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResourceRequirements.newBuilder() to construct. private ResourceRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ResourceRequirements() {} + private ResourceRequirements() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceRequirements(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceRequirements( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,31 +53,31 @@ private ResourceRequirements( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - limits_ = - com.google.protobuf.MapField.newMapField(LimitsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry limits__ = - input.readMessage( - LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - limits_.getMutableMap().put(limits__.getKey(), limits__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + limits_ = com.google.protobuf.MapField.newMapField( + LimitsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - cpuIdle_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + limits__ = input.readMessage( + LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + limits_.getMutableMap().put( + limits__.getKey(), limits__.getValue()); + break; + } + case 16: { + + cpuIdle_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,57 +85,57 @@ private ResourceRequirements( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_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 1: return internalGetLimits(); 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ResourceRequirements.class, - com.google.cloud.run.v2.ResourceRequirements.Builder.class); + com.google.cloud.run.v2.ResourceRequirements.class, com.google.cloud.run.v2.ResourceRequirements.Builder.class); } public static final int LIMITS_FIELD_NUMBER = 1; - private static final class LimitsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField limits_; - - private com.google.protobuf.MapField internalGetLimits() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> limits_; + private com.google.protobuf.MapField + internalGetLimits() { if (limits_ == null) { - return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LimitsDefaultEntryHolder.defaultEntry); } return limits_; } @@ -160,8 +144,6 @@ public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** - * - * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -172,22 +154,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
+
   @java.lang.Override
-  public boolean containsLimits(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLimits(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLimits().getMap().containsKey(key);
   }
-  /** Use {@link #getLimitsMap()} instead. */
+  /**
+   * Use {@link #getLimitsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLimits() {
     return getLimitsMap();
   }
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -199,12 +181,11 @@ public java.util.Map getLimits() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
+
   public java.util.Map getLimitsMap() {
     return internalGetLimits().getMap();
   }
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -216,16 +197,16 @@ public java.util.Map getLimitsMap() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLimits().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -237,11 +218,12 @@ public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-  public java.lang.String getLimitsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -251,14 +233,11 @@ public java.lang.String getLimitsOrThrow(java.lang.String key) {
   public static final int CPU_IDLE_FIELD_NUMBER = 2;
   private boolean cpuIdle_;
   /**
-   *
-   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; - * * @return The cpuIdle. */ @java.lang.Override @@ -267,7 +246,6 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,9 +257,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLimits(), LimitsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLimits(), + LimitsDefaultEntryHolder.defaultEntry, + 1); if (cpuIdle_ != false) { output.writeBool(2, cpuIdle_); } @@ -294,18 +277,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetLimits().getMap().entrySet()) { - com.google.protobuf.MapEntry limits__ = - LimitsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, limits__); + for (java.util.Map.Entry entry + : internalGetLimits().getMap().entrySet()) { + com.google.protobuf.MapEntry + limits__ = LimitsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, limits__); } if (cpuIdle_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, cpuIdle_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, cpuIdle_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,16 +299,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.run.v2.ResourceRequirements)) { return super.equals(obj); } - com.google.cloud.run.v2.ResourceRequirements other = - (com.google.cloud.run.v2.ResourceRequirements) obj; + com.google.cloud.run.v2.ResourceRequirements other = (com.google.cloud.run.v2.ResourceRequirements) obj; - if (!internalGetLimits().equals(other.internalGetLimits())) return false; - if (getCpuIdle() != other.getCpuIdle()) return false; + if (!internalGetLimits().equals( + other.internalGetLimits())) return false; + if (getCpuIdle() + != other.getCpuIdle()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,153 +326,147 @@ public int hashCode() { hash = (53 * hash) + internalGetLimits().hashCode(); } hash = (37 * hash) + CPU_IDLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCpuIdle()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCpuIdle()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ResourceRequirements parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ResourceRequirements parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.ResourceRequirements parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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; } /** - * - * *
    * ResourceRequirements describes the compute resource requirements.
    * 
* * Protobuf type {@code google.cloud.run.v2.ResourceRequirements} */ - 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.run.v2.ResourceRequirements) com.google.cloud.run.v2.ResourceRequirementsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetLimits(); 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 1: return internalGetMutableLimits(); 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ResourceRequirements.class, - com.google.cloud.run.v2.ResourceRequirements.Builder.class); + com.google.cloud.run.v2.ResourceRequirements.class, com.google.cloud.run.v2.ResourceRequirements.Builder.class); } // Construct using com.google.cloud.run.v2.ResourceRequirements.newBuilder() @@ -495,15 +474,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 +494,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; } @java.lang.Override @@ -535,8 +515,7 @@ public com.google.cloud.run.v2.ResourceRequirements build() { @java.lang.Override public com.google.cloud.run.v2.ResourceRequirements buildPartial() { - com.google.cloud.run.v2.ResourceRequirements result = - new com.google.cloud.run.v2.ResourceRequirements(this); + com.google.cloud.run.v2.ResourceRequirements result = new com.google.cloud.run.v2.ResourceRequirements(this); int from_bitField0_ = bitField0_; result.limits_ = internalGetLimits(); result.limits_.makeImmutable(); @@ -549,39 +528,38 @@ public com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements) { - return mergeFrom((com.google.cloud.run.v2.ResourceRequirements) other); + return mergeFrom((com.google.cloud.run.v2.ResourceRequirements)other); } else { super.mergeFrom(other); return this; @@ -590,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.run.v2.ResourceRequirements other) { if (other == com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()) return this; - internalGetMutableLimits().mergeFrom(other.internalGetLimits()); + internalGetMutableLimits().mergeFrom( + other.internalGetLimits()); if (other.getCpuIdle() != false) { setCpuIdle(other.getCpuIdle()); } @@ -622,24 +601,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField limits_; - - private com.google.protobuf.MapField internalGetLimits() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> limits_; + private com.google.protobuf.MapField + internalGetLimits() { if (limits_ == null) { - return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LimitsDefaultEntryHolder.defaultEntry); } return limits_; } - private com.google.protobuf.MapField - internalGetMutableLimits() { - onChanged(); - ; + internalGetMutableLimits() { + onChanged();; if (limits_ == null) { - limits_ = com.google.protobuf.MapField.newMapField(LimitsDefaultEntryHolder.defaultEntry); + limits_ = com.google.protobuf.MapField.newMapField( + LimitsDefaultEntryHolder.defaultEntry); } if (!limits_.isMutable()) { limits_ = limits_.copy(); @@ -651,8 +630,6 @@ public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** - * - * *
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -663,22 +640,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
+
     @java.lang.Override
-    public boolean containsLimits(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLimits(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLimits().getMap().containsKey(key);
     }
-    /** Use {@link #getLimitsMap()} instead. */
+    /**
+     * Use {@link #getLimitsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLimits() {
       return getLimitsMap();
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -690,12 +667,11 @@ public java.util.Map getLimits() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
+
     public java.util.Map getLimitsMap() {
       return internalGetLimits().getMap();
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -707,17 +683,16 @@ public java.util.Map getLimitsMap() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
+
     public java.lang.String getLimitsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLimits().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLimits().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -729,11 +704,12 @@ public java.lang.String getLimitsOrDefault(
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-    public java.lang.String getLimitsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLimits().getMap();
+
+    public java.lang.String getLimitsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -741,12 +717,11 @@ public java.lang.String getLimitsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLimits() {
-      internalGetMutableLimits().getMutableMap().clear();
+      internalGetMutableLimits().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -757,21 +732,23 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-    public Builder removeLimits(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLimits().getMutableMap().remove(key);
+
+    public Builder removeLimits(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLimits().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLimits() {
+    public java.util.Map
+    getMutableLimits() {
       return internalGetMutableLimits().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -782,20 +759,19 @@ public java.util.Map getMutableLimits() {
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLimits(
+        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");
+}
 
-      internalGetMutableLimits().getMutableMap().put(key, value);
+      internalGetMutableLimits().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -806,21 +782,21 @@ public Builder putLimits(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> limits = 1;
      */
-    public Builder putAllLimits(java.util.Map values) {
-      internalGetMutableLimits().getMutableMap().putAll(values);
+
+    public Builder putAllLimits(
+        java.util.Map values) {
+      internalGetMutableLimits().getMutableMap()
+          .putAll(values);
       return this;
     }
 
-    private boolean cpuIdle_;
+    private boolean cpuIdle_ ;
     /**
-     *
-     *
      * 
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; - * * @return The cpuIdle. */ @java.lang.Override @@ -828,43 +804,37 @@ public boolean getCpuIdle() { return cpuIdle_; } /** - * - * *
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; - * * @param value The cpuIdle to set. * @return This builder for chaining. */ public Builder setCpuIdle(boolean value) { - + cpuIdle_ = value; onChanged(); return this; } /** - * - * *
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; - * * @return This builder for chaining. */ public Builder clearCpuIdle() { - + cpuIdle_ = 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); } @@ -874,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ResourceRequirements) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ResourceRequirements) private static final com.google.cloud.run.v2.ResourceRequirements DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ResourceRequirements(); } @@ -888,16 +858,16 @@ public static com.google.cloud.run.v2.ResourceRequirements getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceRequirements parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceRequirements(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceRequirements(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java index 34a5a45..f6c05be 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ResourceRequirementsOrBuilder - extends +public interface ResourceRequirementsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ResourceRequirements) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -38,8 +20,6 @@ public interface ResourceRequirementsOrBuilder
    */
   int getLimitsCount();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -50,13 +30,15 @@ public interface ResourceRequirementsOrBuilder
    *
    * map<string, string> limits = 1;
    */
-  boolean containsLimits(java.lang.String key);
-  /** Use {@link #getLimitsMap()} instead. */
+  boolean containsLimits(
+      java.lang.String key);
+  /**
+   * Use {@link #getLimitsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLimits();
+  java.util.Map
+  getLimits();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -67,10 +49,9 @@ public interface ResourceRequirementsOrBuilder
    *
    * map<string, string> limits = 1;
    */
-  java.util.Map getLimitsMap();
+  java.util.Map
+  getLimitsMap();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -83,13 +64,11 @@ public interface ResourceRequirementsOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLimitsOrDefault(
+java.lang.String getLimitsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -100,17 +79,16 @@ java.lang.String getLimitsOrDefault(
    *
    * map<string, string> limits = 1;
    */
-  java.lang.String getLimitsOrThrow(java.lang.String key);
+
+  java.lang.String getLimitsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; - * * @return The cpuIdle. */ boolean getCpuIdle(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index decd71d..1f4135a 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.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/run/v2/revision.proto package com.google.cloud.run.v2; /** - * - * *
  * A Revision is an immutable snapshot of code and configuration.  A Revision
  * references a container image. Revisions are only created by updates to its
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Revision}
  */
-public final class Revision extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Revision extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Revision)
     RevisionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Revision.newBuilder() to construct.
   private Revision(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Revision() {
     name_ = "";
     uid_ = "";
@@ -56,15 +38,16 @@ private Revision() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Revision();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Revision(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -84,260 +67,231 @@ private Revision(
           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();
+
+            uid_ = s;
+            break;
+          }
+          case 24: {
 
-              uid_ = s;
-              break;
+            generation_ = input.readInt64();
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              generation_ = input.readInt64();
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              annotations_ = com.google.protobuf.MapField.newMapField(
+                  AnnotationsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 34:
-            {
-              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
+            annotations__ = input.readMessage(
+                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            annotations_.getMutableMap().put(
+                annotations__.getKey(), annotations__.getValue());
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                annotations_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AnnotationsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry annotations__ =
-                  input.readMessage(
-                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              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;
+
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.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;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (deleteTime_ != null) {
-                subBuilder = deleteTime_.toBuilder();
-              }
-              deleteTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deleteTime_);
-                deleteTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteTime_ != null) {
+              subBuilder = deleteTime_.toBuilder();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expireTime_ != null) {
-                subBuilder = expireTime_.toBuilder();
-              }
-              expireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(expireTime_);
-                expireTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteTime_);
+              deleteTime_ = subBuilder.buildPartial();
             }
-          case 80:
-            {
-              int rawValue = input.readEnum();
 
-              launchStage_ = rawValue;
-              break;
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.toBuilder();
+            }
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              service_ = s;
-              break;
+            break;
+          }
+          case 80: {
+            int rawValue = input.readEnum();
+
+            launchStage_ = rawValue;
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            service_ = s;
+            break;
+          }
+          case 98: {
+            com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
+            if (scaling_ != null) {
+              subBuilder = scaling_.toBuilder();
             }
-          case 98:
-            {
-              com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
-              if (scaling_ != null) {
-                subBuilder = scaling_.toBuilder();
-              }
-              scaling_ =
-                  input.readMessage(
-                      com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scaling_);
-                scaling_ = subBuilder.buildPartial();
-              }
-
-              break;
+            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scaling_);
+              scaling_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
-              if (vpcAccess_ != null) {
-                subBuilder = vpcAccess_.toBuilder();
-              }
-              vpcAccess_ =
-                  input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vpcAccess_);
-                vpcAccess_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 106: {
+            com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
+            if (vpcAccess_ != null) {
+              subBuilder = vpcAccess_.toBuilder();
             }
-          case 122:
-            {
-              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;
+            vpcAccess_ = input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vpcAccess_);
+              vpcAccess_ = subBuilder.buildPartial();
             }
-          case 130:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccount_ = s;
-              break;
-            }
-          case 138:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                containers_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              containers_.add(
-                  input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
-              break;
+            break;
+          }
+          case 122: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (timeout_ != null) {
+              subBuilder = timeout_.toBuilder();
             }
-          case 146:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                volumes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              volumes_.add(
-                  input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-              break;
+            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(timeout_);
+              timeout_ = subBuilder.buildPartial();
             }
-          case 160:
-            {
-              int rawValue = input.readEnum();
 
-              executionEnvironment_ = rawValue;
-              break;
-            }
-          case 170:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 130: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              encryptionKey_ = s;
-              break;
-            }
-          case 240:
-            {
-              reconciling_ = input.readBool();
-              break;
-            }
-          case 250:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                conditions_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              conditions_.add(
-                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-              break;
+            serviceAccount_ = s;
+            break;
+          }
+          case 138: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              containers_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 256:
-            {
-              observedGeneration_ = input.readInt64();
-              break;
+            containers_.add(
+                input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
+            break;
+          }
+          case 146: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              volumes_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 266:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            volumes_.add(
+                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
+            break;
+          }
+          case 160: {
+            int rawValue = input.readEnum();
 
-              logUri_ = s;
-              break;
-            }
-          case 272:
-            {
-              maxInstanceRequestConcurrency_ = input.readInt32();
-              break;
-            }
-          case 794:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            executionEnvironment_ = rawValue;
+            break;
+          }
+          case 170: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            encryptionKey_ = s;
+            break;
+          }
+          case 240: {
+
+            reconciling_ = input.readBool();
+            break;
+          }
+          case 250: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              conditions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            conditions_.add(
+                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
+            break;
+          }
+          case 256: {
+
+            observedGeneration_ = input.readInt64();
+            break;
+          }
+          case 266: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            logUri_ = s;
+            break;
+          }
+          case 272: {
+
+            maxInstanceRequestConcurrency_ = input.readInt32();
+            break;
+          }
+          case 794: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -345,7 +299,8 @@ private Revision(
     } 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_ & 0x00000004) != 0)) {
         containers_ = java.util.Collections.unmodifiableList(containers_);
@@ -360,30 +315,29 @@ private Revision(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.run.v2.RevisionProto
-        .internal_static_google_cloud_run_v2_Revision_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_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 internalGetLabels();
       case 5:
         return internalGetAnnotations();
       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.run.v2.RevisionProto
-        .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Revision.class, com.google.cloud.run.v2.Revision.Builder.class);
   }
@@ -391,14 +345,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -407,29 +358,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; } } /** - * - * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -440,15 +391,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -457,30 +405,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -491,15 +439,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -508,23 +453,24 @@ public long getGeneration() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.run.v2.RevisionProto - .internal_static_google_cloud_run_v2_Revision_LabelsEntry_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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_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() { + 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_; } @@ -533,8 +479,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -549,22 +493,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -580,12 +524,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -601,16 +544,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -626,11 +569,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -638,24 +582,24 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 5;
-
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.run.v2.RevisionProto
-                .internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField annotations_;
-
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> annotations_;
   private com.google.protobuf.MapField
-      internalGetAnnotations() {
+  internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
@@ -664,30 +608,28 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
-   *
-   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -695,12 +637,11 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -708,17 +649,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -726,11 +666,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -740,15 +681,11 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -756,15 +693,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -772,14 +705,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -789,15 +719,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .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 @@ -805,15 +731,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .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 @@ -821,14 +743,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .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() { @@ -838,16 +757,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -855,16 +770,12 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -872,15 +783,12 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -890,17 +798,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -908,17 +812,13 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -926,16 +826,13 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -945,8 +842,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int LAUNCH_STAGE_FIELD_NUMBER = 10; private int launchStage_; /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -955,16 +850,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -973,11 +864,9 @@ public int getLaunchStageValue() {
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ - @java.lang.Override - public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; @@ -986,16 +875,11 @@ public com.google.api.LaunchStage getLaunchStage() { public static final int SERVICE_FIELD_NUMBER = 11; private volatile java.lang.Object service_; /** - * - * *
    * Output only. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ @java.lang.Override @@ -1004,31 +888,29 @@ 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. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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 { @@ -1039,14 +921,11 @@ public com.google.protobuf.ByteString getServiceBytes() { public static final int SCALING_FIELD_NUMBER = 12; private com.google.cloud.run.v2.RevisionScaling scaling_; /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return Whether the scaling field is set. */ @java.lang.Override @@ -1054,25 +933,18 @@ public boolean hasScaling() { return scaling_ != null; } /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return The scaling. */ @java.lang.Override public com.google.cloud.run.v2.RevisionScaling getScaling() { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } /** - * - * *
    * Scaling settings for this revision.
    * 
@@ -1087,15 +959,12 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { public static final int VPC_ACCESS_FIELD_NUMBER = 13; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -1103,15 +972,12 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return The vpcAccess. */ @java.lang.Override @@ -1119,8 +985,6 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -1136,14 +1000,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 34;
   private int maxInstanceRequestConcurrency_;
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -1154,14 +1015,11 @@ public int getMaxInstanceRequestConcurrency() { public static final int TIMEOUT_FIELD_NUMBER = 15; private com.google.protobuf.Duration timeout_; /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -1169,14 +1027,11 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return The timeout. */ @java.lang.Override @@ -1184,8 +1039,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -1200,8 +1053,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 16; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -1209,7 +1060,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; - * * @return The serviceAccount. */ @java.lang.Override @@ -1218,15 +1068,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -1234,15 +1083,16 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 16; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1253,8 +1103,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int CONTAINERS_FIELD_NUMBER = 17; private java.util.List containers_; /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1267,8 +1115,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1277,13 +1123,11 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getContainersOrBuilderList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1296,8 +1140,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1310,8 +1152,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
     return containers_.get(index);
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1320,15 +1160,14 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
+  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index) {
     return containers_.get(index);
   }
 
   public static final int VOLUMES_FIELD_NUMBER = 18;
   private java.util.List volumes_;
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -1340,8 +1179,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1349,13 +1186,11 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1367,8 +1202,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1380,8 +1213,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1389,51 +1220,41 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; private int executionEnvironment_; /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ - @java.lang.Override - public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 21; private volatile java.lang.Object encryptionKey_; /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -1441,7 +1262,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -1450,15 +1270,14 @@ public java.lang.String getEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; } } /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -1466,15 +1285,16 @@ public java.lang.String getEncryptionKey() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -1485,8 +1305,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { public static final int RECONCILING_FIELD_NUMBER = 30; private boolean reconciling_; /** - * - * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -1494,7 +1312,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1505,92 +1322,71 @@ public boolean getReconciling() { public static final int CONDITIONS_FIELD_NUMBER = 31; private java.util.List conditions_; /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.run.v2.Condition getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } public static final int OBSERVED_GENERATION_FIELD_NUMBER = 32; private long observedGeneration_; /** - * - * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -1598,7 +1394,6 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -1609,14 +1404,11 @@ public long getObservedGeneration() { public static final int LOG_URI_FIELD_NUMBER = 33; private volatile java.lang.Object logUri_; /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The logUri. */ @java.lang.Override @@ -1625,29 +1417,29 @@ public java.lang.String getLogUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logUri_ = s; return s; } } /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for logUri. */ @java.lang.Override - public com.google.protobuf.ByteString getLogUriBytes() { + public com.google.protobuf.ByteString + getLogUriBytes() { java.lang.Object ref = logUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logUri_ = b; return b; } else { @@ -1658,15 +1450,12 @@ public com.google.protobuf.ByteString getLogUriBytes() { public static final int ETAG_FIELD_NUMBER = 99; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1675,30 +1464,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1707,7 +1496,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1719,7 +1507,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_); } @@ -1729,10 +1518,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (generation_ != 0L) { output.writeInt64(3, generation_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -1769,9 +1566,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(18, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -1811,88 +1606,100 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); - } - 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(4, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); + } + 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(4, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, launchStage_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, launchStage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScaling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, executionEnvironment_); + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, encryptionKey_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(30, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(32, observedGeneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(32, observedGeneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, logUri_); } if (maxInstanceRequestConcurrency_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 34, maxInstanceRequestConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(34, maxInstanceRequestConcurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1905,60 +1712,82 @@ 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.run.v2.Revision)) { return super.equals(obj); } com.google.cloud.run.v2.Revision other = (com.google.cloud.run.v2.Revision) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getGeneration() != other.getGeneration()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getGeneration() + != other.getGeneration()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (launchStage_ != other.launchStage_) return false; - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling().equals(other.getScaling())) return false; + if (!getScaling() + .equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess().equals(other.getVpcAccess())) return false; + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; } - if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) - return false; + if (getMaxInstanceRequestConcurrency() + != other.getMaxInstanceRequestConcurrency()) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; - } - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getContainersList().equals(other.getContainersList())) return false; - if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; - if (getObservedGeneration() != other.getObservedGeneration()) return false; - if (!getLogUri().equals(other.getLogUri())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (getObservedGeneration() + != other.getObservedGeneration()) return false; + if (!getLogUri() + .equals(other.getLogUri())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1975,7 +1804,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().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()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -2033,13 +1863,15 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -2049,103 +1881,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Revision parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Revision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Revision 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.run.v2.Revision parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.Revision parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Revision 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.run.v2.Revision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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; } /** - * - * *
    * A Revision is an immutable snapshot of code and configuration.  A Revision
    * references a container image. Revisions are only created by updates to its
@@ -2154,47 +1980,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.Revision}
    */
-  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.run.v2.Revision)
       com.google.cloud.run.v2.RevisionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_Revision_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         case 5:
           return internalGetAnnotations();
         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 internalGetMutableLabels();
         case 5:
           return internalGetMutableAnnotations();
         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.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.Revision.class,
-              com.google.cloud.run.v2.Revision.Builder.class);
+              com.google.cloud.run.v2.Revision.class, com.google.cloud.run.v2.Revision.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Revision.newBuilder()
@@ -2202,19 +2028,19 @@ 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) {
         getContainersFieldBuilder();
         getVolumesFieldBuilder();
         getConditionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2310,9 +2136,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionProto
-          .internal_static_google_cloud_run_v2_Revision_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_descriptor;
     }
 
     @java.lang.Override
@@ -2420,39 +2246,38 @@ public com.google.cloud.run.v2.Revision 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.run.v2.Revision) {
-        return mergeFrom((com.google.cloud.run.v2.Revision) other);
+        return mergeFrom((com.google.cloud.run.v2.Revision)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2472,8 +2297,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
       if (other.getGeneration() != 0L) {
         setGeneration(other.getGeneration());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -2527,10 +2354,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             containersBuilder_ = null;
             containers_ = other.containers_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            containersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getContainersFieldBuilder()
-                    : null;
+            containersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getContainersFieldBuilder() : null;
           } else {
             containersBuilder_.addAllMessages(other.containers_);
           }
@@ -2554,10 +2380,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             volumesBuilder_ = null;
             volumes_ = other.volumes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            volumesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getVolumesFieldBuilder()
-                    : null;
+            volumesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getVolumesFieldBuilder() : null;
           } else {
             volumesBuilder_.addAllMessages(other.volumes_);
           }
@@ -2591,10 +2416,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2639,25 +2463,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2666,21 +2487,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2688,61 +2508,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2750,21 +2563,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -2773,22 +2584,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -2796,80 +2606,70 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -2877,58 +2677,53 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 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(); @@ -2940,8 +2735,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2956,22 +2749,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2987,12 +2780,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3008,17 +2800,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3034,11 +2825,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @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();
       }
@@ -3046,12 +2838,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3066,21 +2857,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3095,20 +2888,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3123,29 +2915,30 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    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 annotations_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> annotations_;
     private com.google.protobuf.MapField
-        internalGetAnnotations() {
+    internalGetAnnotations() {
       if (annotations_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AnnotationsDefaultEntryHolder.defaultEntry);
       }
       return annotations_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableAnnotations() {
-      onChanged();
-      ;
+    internalGetMutableAnnotations() {
+      onChanged();;
       if (annotations_ == null) {
-        annotations_ =
-            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ = com.google.protobuf.MapField.newMapField(
+            AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -3157,30 +2950,28 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
-     *
-     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3188,12 +2979,11 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3201,17 +2991,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3219,11 +3008,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3231,118 +3021,102 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putAnnotations( + 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"); +} - internalGetMutableAnnotations().getMutableMap().put(key, value); + internalGetMutableAnnotations().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); return this; } 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_; /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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(); } } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3358,17 +3132,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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(); @@ -3379,21 +3150,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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; } @@ -3405,15 +3172,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3427,64 +3190,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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> 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_; @@ -3492,58 +3239,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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-modified time.
      * 
* - * - * .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-modified time.
      * 
* - * - * .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-modified time.
      * 
* - * - * .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) { @@ -3559,17 +3287,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .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(); @@ -3580,21 +3305,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .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; } @@ -3606,15 +3327,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .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) { @@ -3628,64 +3345,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .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-modified time.
      * 
* - * - * .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-modified time.
      * 
* - * - * .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_; @@ -3693,61 +3394,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3763,18 +3445,15 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3785,22 +3464,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3812,16 +3487,12 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3835,67 +3506,51 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3903,64 +3558,45 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3976,19 +3612,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -3999,23 +3632,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -4027,17 +3656,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -4051,70 +3676,54 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4122,8 +3731,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int launchStage_ = 0; /** - * - * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -4132,16 +3739,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -4150,19 +3753,16 @@ public int getLaunchStageValue() {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { - + launchStage_ = value; onChanged(); return this; } /** - * - * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -4171,7 +3771,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ @java.lang.Override @@ -4181,8 +3780,6 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** - * - * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -4191,7 +3788,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4199,14 +3795,12 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -4215,11 +3809,10 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -4227,22 +3820,18 @@ public Builder clearLaunchStage() { private java.lang.Object service_ = ""; /** - * - * *
      * Output only. The name of the parent service.
      * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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; @@ -4251,23 +3840,20 @@ public java.lang.String getService() { } } /** - * - * *
      * Output only. The name of the parent service.
      * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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 { @@ -4275,67 +3861,54 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
      * Output only. The name of the parent service.
      * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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. The name of the parent service.
      * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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. The name of the parent service.
      * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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; @@ -4343,47 +3916,34 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder> - scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; /** - * - * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** - * - * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } else { return scalingBuilder_.getMessage(); } } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4404,15 +3964,14 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; */ - public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { + public Builder setScaling( + com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); onChanged(); @@ -4423,8 +3982,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4435,9 +3992,7 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { if (scaling_ != null) { scaling_ = - com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_).mergeFrom(value).buildPartial(); } else { scaling_ = value; } @@ -4449,8 +4004,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4469,8 +4022,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4478,13 +4029,11 @@ public Builder clearScaling() { * .google.cloud.run.v2.RevisionScaling scaling = 12; */ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { - + onChanged(); return getScalingFieldBuilder().getBuilder(); } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4495,14 +4044,11 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { if (scalingBuilder_ != null) { return scalingBuilder_.getMessageOrBuilder(); } else { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? + com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4510,17 +4056,14 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * .google.cloud.run.v2.RevisionScaling scaling = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder> + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> getScalingFieldBuilder() { if (scalingBuilder_ == null) { - scalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder>( - getScaling(), getParentForChildren(), isClean()); + scalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder>( + getScaling(), + getParentForChildren(), + isClean()); scaling_ = null; } return scalingBuilder_; @@ -4528,49 +4071,36 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { private com.google.cloud.run.v2.VpcAccess vpcAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.VpcAccess, - com.google.cloud.run.v2.VpcAccess.Builder, - com.google.cloud.run.v2.VpcAccessOrBuilder> - vpcAccessBuilder_; + com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> vpcAccessBuilder_; /** - * - * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** - * - * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return The vpcAccess. */ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { if (vpcAccessBuilder_ == null) { - return vpcAccess_ == null - ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() - : vpcAccess_; + return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } else { return vpcAccessBuilder_.getMessage(); } } /** - * - * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4592,8 +4122,6 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4601,7 +4129,8 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
      *
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
-    public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
+    public Builder setVpcAccess(
+        com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
       if (vpcAccessBuilder_ == null) {
         vpcAccess_ = builderForValue.build();
         onChanged();
@@ -4612,8 +4141,6 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4625,9 +4152,7 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       if (vpcAccessBuilder_ == null) {
         if (vpcAccess_ != null) {
           vpcAccess_ =
-              com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_).mergeFrom(value).buildPartial();
         } else {
           vpcAccess_ = value;
         }
@@ -4639,8 +4164,6 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4660,8 +4183,6 @@ public Builder clearVpcAccess() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4670,13 +4191,11 @@ public Builder clearVpcAccess() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
-
+      
       onChanged();
       return getVpcAccessFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4688,14 +4207,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
       if (vpcAccessBuilder_ != null) {
         return vpcAccessBuilder_.getMessageOrBuilder();
       } else {
-        return vpcAccess_ == null
-            ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
-            : vpcAccess_;
+        return vpcAccess_ == null ?
+            com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
       }
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4704,32 +4220,26 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess,
-            com.google.cloud.run.v2.VpcAccess.Builder,
-            com.google.cloud.run.v2.VpcAccessOrBuilder>
+        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.VpcAccess,
-                com.google.cloud.run.v2.VpcAccess.Builder,
-                com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(), getParentForChildren(), isClean());
+        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(),
+                getParentForChildren(),
+                isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
     }
 
-    private int maxInstanceRequestConcurrency_;
+    private int maxInstanceRequestConcurrency_ ;
     /**
-     *
-     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -4737,36 +4247,30 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; @@ -4774,33 +4278,24 @@ public Builder clearMaxInstanceRequestConcurrency() { 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_; /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -4811,8 +4306,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4833,15 +4326,14 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; */ - 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(); @@ -4852,8 +4344,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4864,7 +4354,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; } @@ -4876,8 +4366,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4896,8 +4384,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4905,13 +4391,11 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 15; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4922,12 +4406,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_; } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4935,17 +4418,14 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 15; */ 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_; @@ -4953,8 +4433,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4962,13 +4440,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 16; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -4977,8 +4455,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4986,14 +4462,15 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 16; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -5001,8 +4478,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -5010,22 +4485,20 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * 
* * string service_account = 16; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -5033,18 +4506,15 @@ public Builder setServiceAccount(java.lang.String value) {
      * 
* * string service_account = 16; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -5052,40 +4522,34 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 16; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. - */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private java.util.List containers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Container, - com.google.cloud.run.v2.Container.Builder, - com.google.cloud.run.v2.ContainerOrBuilder> - containersBuilder_; + com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> containersBuilder_; /** - * - * *
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5101,8 +4565,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5118,8 +4580,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5135,8 +4595,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5144,7 +4602,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder setContainers(int index, com.google.cloud.run.v2.Container value) {
+    public Builder setContainers(
+        int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5158,8 +4617,6 @@ public Builder setContainers(int index, com.google.cloud.run.v2.Container value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5179,8 +4636,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5202,8 +4657,6 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5211,7 +4664,8 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder addContainers(int index, com.google.cloud.run.v2.Container value) {
+    public Builder addContainers(
+        int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5225,8 +4679,6 @@ public Builder addContainers(int index, com.google.cloud.run.v2.Container value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5234,7 +4686,8 @@ public Builder addContainers(int index, com.google.cloud.run.v2.Container value)
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderForValue) {
+    public Builder addContainers(
+        com.google.cloud.run.v2.Container.Builder builderForValue) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
         containers_.add(builderForValue.build());
@@ -5245,8 +4698,6 @@ public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5266,8 +4717,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5279,7 +4728,8 @@ public Builder addAllContainers(
         java.lang.Iterable values) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, containers_);
         onChanged();
       } else {
         containersBuilder_.addAllMessages(values);
@@ -5287,8 +4737,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5307,8 +4755,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5327,8 +4773,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5336,12 +4780,11 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index) {
+    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
+        int index) {
       return getContainersFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5349,16 +4792,14 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index)
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
+    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+        int index) {
       if (containersBuilder_ == null) {
-        return containers_.get(index);
-      } else {
+        return containers_.get(index);  } else {
         return containersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5366,8 +4807,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public java.util.List
-        getContainersOrBuilderList() {
+    public java.util.List 
+         getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -5375,8 +4816,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5385,12 +4824,10 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
     public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
-      return getContainersFieldBuilder()
-          .addBuilder(com.google.cloud.run.v2.Container.getDefaultInstance());
+      return getContainersFieldBuilder().addBuilder(
+          com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5398,13 +4835,12 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index) {
-      return getContainersFieldBuilder()
-          .addBuilder(index, com.google.cloud.run.v2.Container.getDefaultInstance());
+    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
+        int index) {
+      return getContainersFieldBuilder().addBuilder(
+          index, com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5412,46 +4848,38 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index)
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public java.util.List getContainersBuilderList() {
+    public java.util.List 
+         getContainersBuilderList() {
       return getContainersFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Container,
-            com.google.cloud.run.v2.Container.Builder,
-            com.google.cloud.run.v2.ContainerOrBuilder>
+        com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> 
         getContainersFieldBuilder() {
       if (containersBuilder_ == null) {
-        containersBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.run.v2.Container,
-                com.google.cloud.run.v2.Container.Builder,
-                com.google.cloud.run.v2.ContainerOrBuilder>(
-                containers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder>(
+                containers_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         containers_ = null;
       }
       return containersBuilder_;
     }
 
     private java.util.List volumes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureVolumesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         volumes_ = new java.util.ArrayList(volumes_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Volume,
-            com.google.cloud.run.v2.Volume.Builder,
-            com.google.cloud.run.v2.VolumeOrBuilder>
-        volumesBuilder_;
+        com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> volumesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of Volumes to make available to containers.
      * 
@@ -5466,8 +4894,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5482,8 +4908,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5498,15 +4922,14 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5520,15 +4943,14 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); @@ -5539,8 +4961,6 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5561,15 +4981,14 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5583,15 +5002,14 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes( + com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); @@ -5602,15 +5020,14 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); @@ -5621,8 +5038,6 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5633,7 +5048,8 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -5641,8 +5057,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5660,8 +5074,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5679,44 +5091,39 @@ public Builder removeVolumes(int index) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { + public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder( + int index) { return getVolumesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); - } else { + return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -5724,8 +5131,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5733,47 +5138,42 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -5781,65 +5181,51 @@ public java.util.List getVolumesBuilderL private int executionEnvironment_ = 0; /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -5847,24 +5233,21 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm if (value == null) { throw new NullPointerException(); } - + executionEnvironment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; @@ -5872,8 +5255,6 @@ public Builder clearExecutionEnvironment() { private java.lang.Object encryptionKey_ = ""; /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5881,13 +5262,13 @@ public Builder clearExecutionEnvironment() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ public java.lang.String getEncryptionKey() { java.lang.Object ref = encryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; @@ -5896,8 +5277,6 @@ public java.lang.String getEncryptionKey() { } } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5905,14 +5284,15 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - public com.google.protobuf.ByteString getEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -5920,8 +5300,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { } } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5929,22 +5307,20 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @param value The encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKey(java.lang.String value) { + public Builder setEncryptionKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encryptionKey_ = value; onChanged(); return this; } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5952,18 +5328,15 @@ public Builder setEncryptionKey(java.lang.String value) {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearEncryptionKey() { - + encryptionKey_ = getDefaultInstance().getEncryptionKey(); onChanged(); return this; } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5971,25 +5344,23 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -5997,7 +5368,6 @@ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -6005,8 +5375,6 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -6014,19 +5382,16 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -6034,43 +5399,34 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { - + reconciling_ = false; onChanged(); return this; } private java.util.List conditions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> - conditionsBuilder_; + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -6080,16 +5436,12 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -6099,16 +5451,12 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -6118,18 +5466,15 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) { + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6143,16 +5488,12 @@ public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -6166,16 +5507,12 @@ public Builder setConditions( return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -6191,18 +5528,15 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) { + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6216,18 +5550,15 @@ public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder addConditions( + com.google.cloud.run.v2.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -6238,16 +5569,12 @@ public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderFo return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -6261,22 +5588,19 @@ public Builder addConditions( return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -6284,16 +5608,12 @@ public Builder addAllConditions( return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -6306,16 +5626,12 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -6328,53 +5644,42 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index) { + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -6382,74 +5687,59 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind } } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Condition.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Condition.getDefaultInstance()); + public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** - * - * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - private long observedGeneration_; + private long observedGeneration_ ; /** - * - * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6457,7 +5747,6 @@ public java.util.List getConditionsBu
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -6465,8 +5754,6 @@ public long getObservedGeneration() { return observedGeneration_; } /** - * - * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6474,19 +5761,16 @@ public long getObservedGeneration() {
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The observedGeneration to set. * @return This builder for chaining. */ public Builder setObservedGeneration(long value) { - + observedGeneration_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6494,11 +5778,10 @@ public Builder setObservedGeneration(long value) {
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; @@ -6506,20 +5789,18 @@ public Builder clearObservedGeneration() { private java.lang.Object logUri_ = ""; /** - * - * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The logUri. */ public java.lang.String getLogUri() { java.lang.Object ref = logUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logUri_ = s; return s; @@ -6528,21 +5809,20 @@ public java.lang.String getLogUri() { } } /** - * - * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for logUri. */ - public com.google.protobuf.ByteString getLogUriBytes() { + public com.google.protobuf.ByteString + getLogUriBytes() { java.lang.Object ref = logUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logUri_ = b; return b; } else { @@ -6550,61 +5830,54 @@ public com.google.protobuf.ByteString getLogUriBytes() { } } /** - * - * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The logUri to set. * @return This builder for chaining. */ - public Builder setLogUri(java.lang.String value) { + public Builder setLogUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLogUri() { - + logUri_ = getDefaultInstance().getLogUri(); onChanged(); return this; } /** - * - * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for logUri to set. * @return This builder for chaining. */ - public Builder setLogUriBytes(com.google.protobuf.ByteString value) { + public Builder setLogUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logUri_ = value; onChanged(); return this; @@ -6612,21 +5885,19 @@ public Builder setLogUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -6635,22 +5906,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -6658,71 +5928,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -6732,12 +5995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Revision) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Revision) private static final com.google.cloud.run.v2.Revision DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Revision(); } @@ -6746,16 +6009,16 @@ public static com.google.cloud.run.v2.Revision getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Revision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Revision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Revision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Revision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6770,4 +6033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Revision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java similarity index 100% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java similarity index 81% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index 1ebeb9a..946412f 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -1,97 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision.proto package com.google.cloud.run.v2; -public interface RevisionOrBuilder - extends +public interface RevisionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Revision) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -108,8 +77,6 @@ public interface RevisionOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -124,13 +91,15 @@ public interface RevisionOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  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();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -145,10 +114,9 @@ public interface RevisionOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -165,13 +133,11 @@ public interface RevisionOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -186,11 +152,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * KRM-style annotations for the resource.
    * 
@@ -199,31 +165,30 @@ java.lang.String getLabelsOrDefault( */ int getAnnotationsCount(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -232,185 +197,139 @@ java.lang.String getLabelsOrDefault( */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .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-modified time.
    * 
* - * .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-modified time.
    * 
* - * .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(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -419,13 +338,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -434,67 +350,49 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** - * - * *
    * Output only. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ java.lang.String getService(); /** - * - * *
    * Output only. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.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(); /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return Whether the scaling field is set. */ boolean hasScaling(); /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** - * - * *
    * Scaling settings for this revision.
    * 
@@ -504,34 +402,26 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -542,45 +432,34 @@ java.lang.String getAnnotationsOrDefault(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -590,8 +469,6 @@ java.lang.String getAnnotationsOrDefault( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -599,13 +476,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 16; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -613,14 +487,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 16; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -628,10 +500,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List getContainersList();
+  java.util.List 
+      getContainersList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -641,8 +512,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -652,8 +521,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -661,10 +528,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List getContainersOrBuilderList();
+  java.util.List 
+      getContainersOrBuilderList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -672,21 +538,19 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -695,8 +559,6 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -705,54 +567,44 @@ java.lang.String getAnnotationsOrDefault( */ int getVolumesCount(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List getVolumesOrBuilderList(); + java.util.List + getVolumesOrBuilderList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -760,13 +612,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -774,14 +623,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString getEncryptionKeyBytes(); + com.google.protobuf.ByteString + getEncryptionKeyBytes(); /** - * - * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -789,80 +636,60 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.Condition getConditions(int index); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -870,60 +697,49 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ long getObservedGeneration(); /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The logUri. */ java.lang.String getLogUri(); /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for logUri. */ - com.google.protobuf.ByteString getLogUriBytes(); + com.google.protobuf.ByteString + getLogUriBytes(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java new file mode 100644 index 0000000..1829e7d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public final class RevisionProto { + private RevisionProto() {} + 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_run_v2_GetRevisionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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/run/v2/revision.proto\022\023go" + + "ogle.cloud.run.v2\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\035google/api/la" + + "unch_stage.proto\032\031google/api/resource.pr" + + "oto\032\030google/api/routing.proto\032#google/cl" + + "oud/run/v2/condition.proto\032!google/cloud" + + "/run/v2/k8s.min.proto\032)google/cloud/run/" + + "v2/vendor_settings.proto\032#google/longrun" + + "ning/operations.proto\032\036google/protobuf/d" + + "uration.proto\032\037google/protobuf/timestamp" + + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + + "(\0132).google.cloud.run.v2.Revision.Labels" + + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\t \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + + ".run.v2.VpcAccess\022(\n max_instance_reques" + + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\027\n\017service_accou" + + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + + "google.cloud.run.v2.Volume\022H\n\025execution_" + + "environment\030\024 \001(\0162).google.cloud.run.v2." + + "ExecutionEnvironment\022>\n\016encryption_key\030\025" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + + "is.com/Revision\022Oprojects/{project}/loca" + + "tions/{location}/services/{service}/revi" + + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + + "tRevision\022\'.google.cloud.run.v2.GetRevis" + + "ionRequest\032\035.google.cloud.run.v2.Revisio" + + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + + "e\022$projects/*/locations/{location=*}/**\332" + + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + + "run.v2.ListRevisionsRequest\032*.google.clo" + + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + + "8/v2/{parent=projects/*/locations/*/serv" + + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + + "cts/*/locations/{location=*}/**\332A\006parent" + + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + + "2.DeleteRevisionRequest\032\035.google.longrun" + + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + + "cts/*/locations/*/services/*/revisions/*" + + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + + "ion\032F\312A\022run.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformBb\n\027c" + + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + + "6google.golang.org/genproto/googleapis/c" + + "loud/run/v2;runb\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.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, + new java.lang.String[] { "Revisions", "NextPageToken", }); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Revision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_descriptor, + new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Service", "Scaling", "VpcAccess", "MaxInstanceRequestConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "Reconciling", "Conditions", "ObservedGeneration", "LogUri", "Etag", }); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + 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.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + 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.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java index 654fc94..262416e 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** - * - * *
  * Settings for revision-level scaling settings.
  * 
* * Protobuf type {@code google.cloud.run.v2.RevisionScaling} */ -public final class RevisionScaling extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RevisionScaling extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RevisionScaling) RevisionScalingOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RevisionScaling.newBuilder() to construct. private RevisionScaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RevisionScaling() {} + private RevisionScaling() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RevisionScaling(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RevisionScaling( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,23 +52,23 @@ private RevisionScaling( case 0: done = true; break; - case 8: - { - minInstanceCount_ = input.readInt32(); - break; - } - case 16: - { - maxInstanceCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + minInstanceCount_ = input.readInt32(); + break; + } + case 16: { + + maxInstanceCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,39 +76,34 @@ private RevisionScaling( } 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.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RevisionScaling.class, - com.google.cloud.run.v2.RevisionScaling.Builder.class); + com.google.cloud.run.v2.RevisionScaling.class, com.google.cloud.run.v2.RevisionScaling.Builder.class); } public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 1; private int minInstanceCount_; /** - * - * *
    * Minimum number of serving instances that this resource should have.
    * 
* * int32 min_instance_count = 1; - * * @return The minInstanceCount. */ @java.lang.Override @@ -135,14 +114,11 @@ public int getMinInstanceCount() { public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 2; private int maxInstanceCount_; /** - * - * *
    * Maximum number of serving instances that this resource should have.
    * 
* * int32 max_instance_count = 2; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -151,7 +127,6 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,7 +138,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 (minInstanceCount_ != 0) { output.writeInt32(1, minInstanceCount_); } @@ -180,10 +156,12 @@ public int getSerializedSize() { size = 0; if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, minInstanceCount_); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxInstanceCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -193,15 +171,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.run.v2.RevisionScaling)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionScaling other = (com.google.cloud.run.v2.RevisionScaling) obj; - if (getMinInstanceCount() != other.getMinInstanceCount()) return false; - if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() + != other.getMinInstanceCount()) return false; + if (getMaxInstanceCount() + != other.getMaxInstanceCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -222,127 +202,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.RevisionScaling parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.RevisionScaling parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.RevisionScaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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; } /** - * - * *
    * Settings for revision-level scaling settings.
    * 
* * Protobuf type {@code google.cloud.run.v2.RevisionScaling} */ - 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.run.v2.RevisionScaling) com.google.cloud.run.v2.RevisionScalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RevisionScaling.class, - com.google.cloud.run.v2.RevisionScaling.Builder.class); + com.google.cloud.run.v2.RevisionScaling.class, com.google.cloud.run.v2.RevisionScaling.Builder.class); } // Construct using com.google.cloud.run.v2.RevisionScaling.newBuilder() @@ -350,15 +321,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(); @@ -370,9 +342,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.VendorSettingsProto - .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override @@ -391,8 +363,7 @@ public com.google.cloud.run.v2.RevisionScaling build() { @java.lang.Override public com.google.cloud.run.v2.RevisionScaling buildPartial() { - com.google.cloud.run.v2.RevisionScaling result = - new com.google.cloud.run.v2.RevisionScaling(this); + com.google.cloud.run.v2.RevisionScaling result = new com.google.cloud.run.v2.RevisionScaling(this); result.minInstanceCount_ = minInstanceCount_; result.maxInstanceCount_ = maxInstanceCount_; onBuilt(); @@ -403,39 +374,38 @@ public com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling) { - return mergeFrom((com.google.cloud.run.v2.RevisionScaling) other); + return mergeFrom((com.google.cloud.run.v2.RevisionScaling)other); } else { super.mergeFrom(other); return this; @@ -479,16 +449,13 @@ public Builder mergeFrom( return this; } - private int minInstanceCount_; + private int minInstanceCount_ ; /** - * - * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; - * * @return The minInstanceCount. */ @java.lang.Override @@ -496,51 +463,42 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** - * - * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; - * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** - * - * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; - * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; } - private int maxInstanceCount_; + private int maxInstanceCount_ ; /** - * - * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -548,43 +506,37 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** - * - * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; - * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; - * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 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); } @@ -594,12 +546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RevisionScaling) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RevisionScaling) private static final com.google.cloud.run.v2.RevisionScaling DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.RevisionScaling(); } @@ -608,16 +560,16 @@ public static com.google.cloud.run.v2.RevisionScaling getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevisionScaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevisionScaling(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevisionScaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevisionScaling(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionScaling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java similarity index 51% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java index 90a7a20..caca17c 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java @@ -1,50 +1,28 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface RevisionScalingOrBuilder - extends +public interface RevisionScalingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionScaling) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Minimum number of serving instances that this resource should have.
    * 
* * int32 min_instance_count = 1; - * * @return The minInstanceCount. */ int getMinInstanceCount(); /** - * - * *
    * Maximum number of serving instances that this resource should have.
    * 
* * int32 max_instance_count = 2; - * * @return The maxInstanceCount. */ int getMaxInstanceCount(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index 7f9d624..d9d5936 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.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/run/v2/revision_template.proto package com.google.cloud.run.v2; /** - * - * *
  * RevisionTemplate describes the data a revision should have when created from
  * a template.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.RevisionTemplate}
  */
-public final class RevisionTemplate extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RevisionTemplate extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RevisionTemplate)
     RevisionTemplateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RevisionTemplate.newBuilder() to construct.
   private RevisionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RevisionTemplate() {
     revision_ = "";
     serviceAccount_ = "";
@@ -49,15 +31,16 @@ private RevisionTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RevisionTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RevisionTemplate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,140 +60,125 @@ private RevisionTemplate(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              revision_ = s;
-              break;
+            revision_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              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 26: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              annotations_ = com.google.protobuf.MapField.newMapField(
+                  AnnotationsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                annotations_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AnnotationsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry annotations__ =
-                  input.readMessage(
-                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            annotations__ = input.readMessage(
+                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            annotations_.getMutableMap().put(
+                annotations__.getKey(), annotations__.getValue());
+            break;
+          }
+          case 34: {
+            com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
+            if (scaling_ != null) {
+              subBuilder = scaling_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
-              if (scaling_ != null) {
-                subBuilder = scaling_.toBuilder();
-              }
-              scaling_ =
-                  input.readMessage(
-                      com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scaling_);
-                scaling_ = subBuilder.buildPartial();
-              }
-
-              break;
+            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scaling_);
+              scaling_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
-              if (vpcAccess_ != null) {
-                subBuilder = vpcAccess_.toBuilder();
-              }
-              vpcAccess_ =
-                  input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vpcAccess_);
-                vpcAccess_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 50: {
+            com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
+            if (vpcAccess_ != null) {
+              subBuilder = vpcAccess_.toBuilder();
             }
-          case 66:
-            {
-              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;
+            vpcAccess_ = input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vpcAccess_);
+              vpcAccess_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccount_ = s;
-              break;
-            }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                containers_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              containers_.add(
-                  input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
-              break;
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (timeout_ != null) {
+              subBuilder = timeout_.toBuilder();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                volumes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              volumes_.add(
-                  input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-              break;
+            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(timeout_);
+              timeout_ = subBuilder.buildPartial();
             }
-          case 104:
-            {
-              int rawValue = input.readEnum();
 
-              executionEnvironment_ = rawValue;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              encryptionKey_ = s;
-              break;
+            serviceAccount_ = s;
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              containers_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 120:
-            {
-              maxInstanceRequestConcurrency_ = input.readInt32();
-              break;
+            containers_.add(
+                input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              volumes_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            volumes_.add(
+                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
+            break;
+          }
+          case 104: {
+            int rawValue = input.readEnum();
+
+            executionEnvironment_ = rawValue;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            encryptionKey_ = s;
+            break;
+          }
+          case 120: {
+
+            maxInstanceRequestConcurrency_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -218,7 +186,8 @@ private RevisionTemplate(
     } 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_ & 0x00000004) != 0)) {
         containers_ = java.util.Collections.unmodifiableList(containers_);
@@ -230,47 +199,42 @@ private RevisionTemplate(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.run.v2.RevisionTemplateProto
-        .internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_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 2:
         return internalGetLabels();
       case 3:
         return internalGetAnnotations();
       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.run.v2.RevisionTemplateProto
-        .internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.RevisionTemplate.class,
-            com.google.cloud.run.v2.RevisionTemplate.Builder.class);
+            com.google.cloud.run.v2.RevisionTemplate.class, com.google.cloud.run.v2.RevisionTemplate.Builder.class);
   }
 
   public static final int REVISION_FIELD_NUMBER = 1;
   private volatile java.lang.Object revision_;
   /**
-   *
-   *
    * 
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ @java.lang.Override @@ -279,30 +243,30 @@ 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; } } /** - * - * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -311,23 +275,24 @@ public com.google.protobuf.ByteString getRevisionBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.run.v2.RevisionTemplateProto - .internal_static_google_cloud_run_v2_RevisionTemplate_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.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_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_; } @@ -336,30 +301,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ + @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(); } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -367,12 +330,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -380,16 +342,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @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; } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -397,11 +359,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @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(); } @@ -409,24 +372,24 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ANNOTATIONS_FIELD_NUMBER = 3; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.run.v2.RevisionTemplateProto - .internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField annotations_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } @@ -435,30 +398,28 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -466,12 +427,11 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -479,17 +439,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -497,11 +456,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -511,14 +471,11 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { public static final int SCALING_FIELD_NUMBER = 4; private com.google.cloud.run.v2.RevisionScaling scaling_; /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return Whether the scaling field is set. */ @java.lang.Override @@ -526,25 +483,18 @@ public boolean hasScaling() { return scaling_ != null; } /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return The scaling. */ @java.lang.Override public com.google.cloud.run.v2.RevisionScaling getScaling() { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } /** - * - * *
    * Scaling settings for this Revision.
    * 
@@ -559,15 +509,12 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { public static final int VPC_ACCESS_FIELD_NUMBER = 6; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -575,15 +522,12 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return The vpcAccess. */ @java.lang.Override @@ -591,8 +535,6 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -608,14 +550,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
-   *
-   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -623,14 +562,11 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ @java.lang.Override @@ -638,8 +574,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -654,8 +588,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -664,7 +596,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override @@ -673,15 +604,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -690,15 +620,16 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -709,8 +640,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int CONTAINERS_FIELD_NUMBER = 10; private java.util.List containers_; /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -723,8 +652,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -733,13 +660,11 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getContainersOrBuilderList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -752,8 +677,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -766,8 +689,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
     return containers_.get(index);
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -776,15 +697,14 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
+  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index) {
     return containers_.get(index);
   }
 
   public static final int VOLUMES_FIELD_NUMBER = 11;
   private java.util.List volumes_;
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -796,8 +716,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -805,13 +723,11 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -823,8 +739,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -836,8 +750,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -845,51 +757,41 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 13; private int executionEnvironment_; /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ - @java.lang.Override - public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 14; private volatile java.lang.Object encryptionKey_; /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -897,7 +799,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -906,15 +807,14 @@ public java.lang.String getEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; } } /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -922,15 +822,16 @@ public java.lang.String getEncryptionKey() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -941,14 +842,11 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 15; private int maxInstanceRequestConcurrency_; /** - * - * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -957,7 +855,6 @@ public int getMaxInstanceRequestConcurrency() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -969,14 +866,23 @@ 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(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, revision_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 3); if (scaling_ != null) { output.writeMessage(4, getScaling()); } @@ -995,9 +901,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(11, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -1018,56 +922,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revision_); } - 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(2, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotations__); + 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(2, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, annotations__); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScaling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, executionEnvironment_); + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, encryptionKey_); } if (maxInstanceRequestConcurrency_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 15, maxInstanceRequestConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, maxInstanceRequestConcurrency_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1077,35 +984,45 @@ 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.run.v2.RevisionTemplate)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionTemplate other = (com.google.cloud.run.v2.RevisionTemplate) obj; - if (!getRevision().equals(other.getRevision())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling().equals(other.getScaling())) return false; + if (!getScaling() + .equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess().equals(other.getVpcAccess())) return false; + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; - } - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getContainersList().equals(other.getContainersList())) return false; - if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) - return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (getMaxInstanceRequestConcurrency() + != other.getMaxInstanceRequestConcurrency()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1160,104 +1077,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.RevisionTemplate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.RevisionTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.RevisionTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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; } /** - * - * *
    * RevisionTemplate describes the data a revision should have when created from
    * a template.
@@ -1265,47 +1175,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.RevisionTemplate}
    */
-  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.run.v2.RevisionTemplate)
       com.google.cloud.run.v2.RevisionTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.RevisionTemplateProto
-          .internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         case 3:
           return internalGetAnnotations();
         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 2:
           return internalGetMutableLabels();
         case 3:
           return internalGetMutableAnnotations();
         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.run.v2.RevisionTemplateProto
-          .internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.RevisionTemplate.class,
-              com.google.cloud.run.v2.RevisionTemplate.Builder.class);
+              com.google.cloud.run.v2.RevisionTemplate.class, com.google.cloud.run.v2.RevisionTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.RevisionTemplate.newBuilder()
@@ -1313,18 +1223,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) {
         getContainersFieldBuilder();
         getVolumesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1374,9 +1284,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionTemplateProto
-          .internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -1395,8 +1305,7 @@ public com.google.cloud.run.v2.RevisionTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.RevisionTemplate buildPartial() {
-      com.google.cloud.run.v2.RevisionTemplate result =
-          new com.google.cloud.run.v2.RevisionTemplate(this);
+      com.google.cloud.run.v2.RevisionTemplate result = new com.google.cloud.run.v2.RevisionTemplate(this);
       int from_bitField0_ = bitField0_;
       result.revision_ = revision_;
       result.labels_ = internalGetLabels();
@@ -1448,39 +1357,38 @@ public com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate) {
-        return mergeFrom((com.google.cloud.run.v2.RevisionTemplate) other);
+        return mergeFrom((com.google.cloud.run.v2.RevisionTemplate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1493,8 +1401,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
         revision_ = other.revision_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       if (other.hasScaling()) {
         mergeScaling(other.getScaling());
       }
@@ -1526,10 +1436,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
             containersBuilder_ = null;
             containers_ = other.containers_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            containersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getContainersFieldBuilder()
-                    : null;
+            containersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getContainersFieldBuilder() : null;
           } else {
             containersBuilder_.addAllMessages(other.containers_);
           }
@@ -1553,10 +1462,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
             volumesBuilder_ = null;
             volumes_ = other.volumes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            volumesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getVolumesFieldBuilder()
-                    : null;
+            volumesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getVolumesFieldBuilder() : null;
           } else {
             volumesBuilder_.addAllMessages(other.volumes_);
           }
@@ -1600,26 +1508,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object revision_ = "";
     /**
-     *
-     *
      * 
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @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; @@ -1628,22 +1533,21 @@ public java.lang.String getRevision() { } } /** - * - * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -1651,84 +1555,78 @@ public com.google.protobuf.ByteString getRevisionBytes() { } } /** - * - * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** - * - * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @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; } - 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(); @@ -1740,30 +1638,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ + @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(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1771,12 +1667,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1784,17 +1679,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @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; } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1802,11 +1696,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @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(); } @@ -1814,82 +1709,83 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - 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(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - 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; } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - 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 annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged(); - ; + internalGetMutableAnnotations() { + onChanged();; if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1901,30 +1797,28 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1932,12 +1826,11 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1945,17 +1838,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1963,11 +1855,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1975,107 +1868,97 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putAnnotations( + 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"); +} - internalGetMutableAnnotations().getMutableMap().put(key, value); + internalGetMutableAnnotations().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); return this; } private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder> - scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; /** - * - * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** - * - * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } else { return scalingBuilder_.getMessage(); } } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2096,15 +1979,14 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; */ - public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { + public Builder setScaling( + com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); onChanged(); @@ -2115,8 +1997,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2127,9 +2007,7 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { if (scaling_ != null) { scaling_ = - com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_).mergeFrom(value).buildPartial(); } else { scaling_ = value; } @@ -2141,8 +2019,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2161,8 +2037,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2170,13 +2044,11 @@ public Builder clearScaling() { * .google.cloud.run.v2.RevisionScaling scaling = 4; */ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { - + onChanged(); return getScalingFieldBuilder().getBuilder(); } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2187,14 +2059,11 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { if (scalingBuilder_ != null) { return scalingBuilder_.getMessageOrBuilder(); } else { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? + com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2202,17 +2071,14 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * .google.cloud.run.v2.RevisionScaling scaling = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder> + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> getScalingFieldBuilder() { if (scalingBuilder_ == null) { - scalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder>( - getScaling(), getParentForChildren(), isClean()); + scalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder>( + getScaling(), + getParentForChildren(), + isClean()); scaling_ = null; } return scalingBuilder_; @@ -2220,49 +2086,36 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { private com.google.cloud.run.v2.VpcAccess vpcAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.VpcAccess, - com.google.cloud.run.v2.VpcAccess.Builder, - com.google.cloud.run.v2.VpcAccessOrBuilder> - vpcAccessBuilder_; + com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> vpcAccessBuilder_; /** - * - * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** - * - * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return The vpcAccess. */ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { if (vpcAccessBuilder_ == null) { - return vpcAccess_ == null - ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() - : vpcAccess_; + return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } else { return vpcAccessBuilder_.getMessage(); } } /** - * - * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2284,8 +2137,6 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2293,7 +2144,8 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
      *
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
-    public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
+    public Builder setVpcAccess(
+        com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
       if (vpcAccessBuilder_ == null) {
         vpcAccess_ = builderForValue.build();
         onChanged();
@@ -2304,8 +2156,6 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2317,9 +2167,7 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       if (vpcAccessBuilder_ == null) {
         if (vpcAccess_ != null) {
           vpcAccess_ =
-              com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_).mergeFrom(value).buildPartial();
         } else {
           vpcAccess_ = value;
         }
@@ -2331,8 +2179,6 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2352,8 +2198,6 @@ public Builder clearVpcAccess() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2362,13 +2206,11 @@ public Builder clearVpcAccess() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
-
+      
       onChanged();
       return getVpcAccessFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2380,14 +2222,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
       if (vpcAccessBuilder_ != null) {
         return vpcAccessBuilder_.getMessageOrBuilder();
       } else {
-        return vpcAccess_ == null
-            ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
-            : vpcAccess_;
+        return vpcAccess_ == null ?
+            com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
       }
     }
     /**
-     *
-     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2396,17 +2235,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess,
-            com.google.cloud.run.v2.VpcAccess.Builder,
-            com.google.cloud.run.v2.VpcAccessOrBuilder>
+        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.VpcAccess,
-                com.google.cloud.run.v2.VpcAccess.Builder,
-                com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(), getParentForChildren(), isClean());
+        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(),
+                getParentForChildren(),
+                isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
@@ -2414,33 +2250,24 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
 
     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_;
     /**
-     *
-     *
      * 
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2451,8 +2278,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2473,15 +2298,14 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; */ - 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(); @@ -2492,8 +2316,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2504,7 +2326,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; } @@ -2516,8 +2338,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2536,8 +2356,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2545,13 +2363,11 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 8; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2562,12 +2378,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_; } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2575,17 +2390,14 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 8; */ 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_; @@ -2593,8 +2405,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2603,13 +2413,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 9; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2618,8 +2428,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2628,14 +2436,15 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2643,8 +2452,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2653,22 +2460,20 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * 
* * string service_account = 9; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2677,18 +2482,15 @@ public Builder setServiceAccount(java.lang.String value) {
      * 
* * string service_account = 9; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2697,40 +2499,34 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private java.util.List containers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Container, - com.google.cloud.run.v2.Container.Builder, - com.google.cloud.run.v2.ContainerOrBuilder> - containersBuilder_; + com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> containersBuilder_; /** - * - * *
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2746,8 +2542,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2763,8 +2557,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2780,8 +2572,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2789,7 +2579,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder setContainers(int index, com.google.cloud.run.v2.Container value) {
+    public Builder setContainers(
+        int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2803,8 +2594,6 @@ public Builder setContainers(int index, com.google.cloud.run.v2.Container value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2824,8 +2613,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2847,8 +2634,6 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2856,7 +2641,8 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder addContainers(int index, com.google.cloud.run.v2.Container value) {
+    public Builder addContainers(
+        int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2870,8 +2656,6 @@ public Builder addContainers(int index, com.google.cloud.run.v2.Container value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2879,7 +2663,8 @@ public Builder addContainers(int index, com.google.cloud.run.v2.Container value)
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderForValue) {
+    public Builder addContainers(
+        com.google.cloud.run.v2.Container.Builder builderForValue) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
         containers_.add(builderForValue.build());
@@ -2890,8 +2675,6 @@ public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2911,8 +2694,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2924,7 +2705,8 @@ public Builder addAllContainers(
         java.lang.Iterable values) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, containers_);
         onChanged();
       } else {
         containersBuilder_.addAllMessages(values);
@@ -2932,8 +2714,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2952,8 +2732,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2972,8 +2750,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2981,12 +2757,11 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index) {
+    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
+        int index) {
       return getContainersFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2994,16 +2769,14 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index)
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
+    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+        int index) {
       if (containersBuilder_ == null) {
-        return containers_.get(index);
-      } else {
+        return containers_.get(index);  } else {
         return containersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3011,8 +2784,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public java.util.List
-        getContainersOrBuilderList() {
+    public java.util.List 
+         getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -3020,8 +2793,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3030,12 +2801,10 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
     public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
-      return getContainersFieldBuilder()
-          .addBuilder(com.google.cloud.run.v2.Container.getDefaultInstance());
+      return getContainersFieldBuilder().addBuilder(
+          com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3043,13 +2812,12 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index) {
-      return getContainersFieldBuilder()
-          .addBuilder(index, com.google.cloud.run.v2.Container.getDefaultInstance());
+    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
+        int index) {
+      return getContainersFieldBuilder().addBuilder(
+          index, com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3057,46 +2825,38 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index)
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public java.util.List getContainersBuilderList() {
+    public java.util.List 
+         getContainersBuilderList() {
       return getContainersFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Container,
-            com.google.cloud.run.v2.Container.Builder,
-            com.google.cloud.run.v2.ContainerOrBuilder>
+        com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> 
         getContainersFieldBuilder() {
       if (containersBuilder_ == null) {
-        containersBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.run.v2.Container,
-                com.google.cloud.run.v2.Container.Builder,
-                com.google.cloud.run.v2.ContainerOrBuilder>(
-                containers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder>(
+                containers_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         containers_ = null;
       }
       return containersBuilder_;
     }
 
     private java.util.List volumes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureVolumesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         volumes_ = new java.util.ArrayList(volumes_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Volume,
-            com.google.cloud.run.v2.Volume.Builder,
-            com.google.cloud.run.v2.VolumeOrBuilder>
-        volumesBuilder_;
+        com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> volumesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of Volumes to make available to containers.
      * 
@@ -3111,8 +2871,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3127,8 +2885,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3143,15 +2899,14 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3165,15 +2920,14 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); @@ -3184,8 +2938,6 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3206,15 +2958,14 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3228,15 +2979,14 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes( + com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); @@ -3247,15 +2997,14 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); @@ -3266,8 +3015,6 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3278,7 +3025,8 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -3286,8 +3034,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3305,8 +3051,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3324,44 +3068,39 @@ public Builder removeVolumes(int index) { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { + public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder( + int index) { return getVolumesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); - } else { + return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -3369,8 +3108,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3378,47 +3115,42 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -3426,65 +3158,51 @@ public java.util.List getVolumesBuilderL private int executionEnvironment_ = 0; /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -3492,24 +3210,21 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm if (value == null) { throw new NullPointerException(); } - + executionEnvironment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; @@ -3517,8 +3232,6 @@ public Builder clearExecutionEnvironment() { private java.lang.Object encryptionKey_ = ""; /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3526,13 +3239,13 @@ public Builder clearExecutionEnvironment() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ public java.lang.String getEncryptionKey() { java.lang.Object ref = encryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; @@ -3541,8 +3254,6 @@ public java.lang.String getEncryptionKey() { } } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3550,14 +3261,15 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - public com.google.protobuf.ByteString getEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -3565,8 +3277,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { } } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3574,22 +3284,20 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @param value The encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKey(java.lang.String value) { + public Builder setEncryptionKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encryptionKey_ = value; onChanged(); return this; } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3597,18 +3305,15 @@ public Builder setEncryptionKey(java.lang.String value) {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearEncryptionKey() { - + encryptionKey_ = getDefaultInstance().getEncryptionKey(); onChanged(); return this; } /** - * - * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3616,31 +3321,28 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private int maxInstanceRequestConcurrency_; + private int maxInstanceRequestConcurrency_ ; /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -3648,43 +3350,37 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 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); } @@ -3694,12 +3390,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RevisionTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RevisionTemplate) private static final com.google.cloud.run.v2.RevisionTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.RevisionTemplate(); } @@ -3708,16 +3404,16 @@ public static com.google.cloud.run.v2.RevisionTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevisionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevisionTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevisionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevisionTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3732,4 +3428,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java similarity index 80% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index 15f01a2..ababa87 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.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/run/v2/revision_template.proto package com.google.cloud.run.v2; -public interface RevisionTemplateOrBuilder - extends +public interface RevisionTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -61,31 +38,30 @@ public interface RevisionTemplateOrBuilder */ int getLabelsCount(); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - 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(); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -94,24 +70,22 @@ public interface RevisionTemplateOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -120,31 +94,30 @@ java.lang.String getLabelsOrDefault( */ int getAnnotationsCount(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -153,48 +126,40 @@ java.lang.String getLabelsOrDefault( */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return Whether the scaling field is set. */ boolean hasScaling(); /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** - * - * *
    * Scaling settings for this Revision.
    * 
@@ -204,34 +169,26 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -242,32 +199,24 @@ java.lang.String getAnnotationsOrDefault(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -277,8 +226,6 @@ java.lang.String getAnnotationsOrDefault( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -287,13 +234,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -302,14 +246,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -317,10 +259,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List getContainersList();
+  java.util.List 
+      getContainersList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -330,8 +271,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -341,8 +280,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -350,10 +287,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List getContainersOrBuilderList();
+  java.util.List 
+      getContainersOrBuilderList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -361,21 +297,19 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -384,8 +318,6 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -394,54 +326,44 @@ java.lang.String getAnnotationsOrDefault( */ int getVolumesCount(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List getVolumesOrBuilderList(); + java.util.List + getVolumesOrBuilderList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -449,13 +371,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -463,20 +382,17 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString getEncryptionKeyBytes(); + com.google.protobuf.ByteString + getEncryptionKeyBytes(); /** - * - * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java new file mode 100644 index 0000000..4b86c8b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision_template.proto + +package com.google.cloud.run.v2; + +public final class RevisionTemplateProto { + private RevisionTemplateProto() {} + 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_run_v2_RevisionTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_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/run/v2/revision_template." + + "proto\022\023google.cloud.run.v2\032\031google/api/r" + + "esource.proto\032!google/cloud/run/v2/k8s.m" + + "in.proto\032)google/cloud/run/v2/vendor_set" + + "tings.proto\032\036google/protobuf/duration.pr" + + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + + " \003(\01326.google.cloud.run.v2.RevisionTempl" + + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + + "google.cloud.run.v2.RevisionScaling\0222\n\nv" + + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + + ".run.v2.Volume\022H\n\025execution_environment\030" + + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022(\n max_" + + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + + "B\025RevisionTemplateProtoP\001Z6google.golang" + + ".org/genproto/googleapis/cloud/run/v2;ru" + + "nb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, + new java.lang.String[] { "Revision", "Labels", "Annotations", "Scaling", "VpcAccess", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "MaxInstanceRequestConcurrency", }); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java index b15cf4d..8a44f53 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * SecretEnvVarSource represents a source for the value of an EnvVar.
  * 
* * Protobuf type {@code google.cloud.run.v2.SecretKeySelector} */ -public final class SecretKeySelector extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SecretKeySelector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SecretKeySelector) SecretKeySelectorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SecretKeySelector.newBuilder() to construct. private SecretKeySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecretKeySelector() { secret_ = ""; version_ = ""; @@ -44,15 +26,16 @@ private SecretKeySelector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecretKeySelector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SecretKeySelector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private SecretKeySelector( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - secret_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + secret_ = s; + break; + } + case 18: { + 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) { @@ -99,33 +80,29 @@ private SecretKeySelector( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.SecretKeySelector.class, - com.google.cloud.run.v2.SecretKeySelector.Builder.class); + com.google.cloud.run.v2.SecretKeySelector.class, com.google.cloud.run.v2.SecretKeySelector.Builder.class); } public static final int SECRET_FIELD_NUMBER = 1; private volatile java.lang.Object secret_; /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -133,10 +110,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * in a different project.
    * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The secret. */ @java.lang.Override @@ -145,15 +119,14 @@ 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; } } /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -161,18 +134,17 @@ public java.lang.String getSecret() {
    * in a different project.
    * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -183,15 +155,12 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @return The version. */ @java.lang.Override @@ -200,30 +169,30 @@ 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; } } /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -232,7 +201,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +212,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(secret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secret_); } @@ -274,16 +243,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.run.v2.SecretKeySelector)) { return super.equals(obj); } - com.google.cloud.run.v2.SecretKeySelector other = - (com.google.cloud.run.v2.SecretKeySelector) obj; + com.google.cloud.run.v2.SecretKeySelector other = (com.google.cloud.run.v2.SecretKeySelector) obj; - if (!getSecret().equals(other.getSecret())) return false; - if (!getVersion().equals(other.getVersion())) 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; } @@ -304,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.SecretKeySelector parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.SecretKeySelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.SecretKeySelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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; } /** - * - * *
    * SecretEnvVarSource represents a source for the value of an EnvVar.
    * 
* * Protobuf type {@code google.cloud.run.v2.SecretKeySelector} */ - 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.run.v2.SecretKeySelector) com.google.cloud.run.v2.SecretKeySelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.SecretKeySelector.class, - com.google.cloud.run.v2.SecretKeySelector.Builder.class); + com.google.cloud.run.v2.SecretKeySelector.class, com.google.cloud.run.v2.SecretKeySelector.Builder.class); } // Construct using com.google.cloud.run.v2.SecretKeySelector.newBuilder() @@ -432,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(); @@ -452,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override @@ -473,8 +435,7 @@ public com.google.cloud.run.v2.SecretKeySelector build() { @java.lang.Override public com.google.cloud.run.v2.SecretKeySelector buildPartial() { - com.google.cloud.run.v2.SecretKeySelector result = - new com.google.cloud.run.v2.SecretKeySelector(this); + com.google.cloud.run.v2.SecretKeySelector result = new com.google.cloud.run.v2.SecretKeySelector(this); result.secret_ = secret_; result.version_ = version_; onBuilt(); @@ -485,39 +446,38 @@ public com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector) { - return mergeFrom((com.google.cloud.run.v2.SecretKeySelector) other); + return mergeFrom((com.google.cloud.run.v2.SecretKeySelector)other); } else { super.mergeFrom(other); return this; @@ -565,8 +525,6 @@ public Builder mergeFrom( private java.lang.Object secret_ = ""; /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -574,16 +532,14 @@ public Builder mergeFrom(
      * in a different project.
      * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -592,8 +548,6 @@ public java.lang.String getSecret() { } } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -601,17 +555,16 @@ public java.lang.String getSecret() {
      * in a different project.
      * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -619,8 +572,6 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -628,25 +579,21 @@ public com.google.protobuf.ByteString getSecretBytes() {
      * in a different project.
      * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -654,21 +601,16 @@ public Builder setSecret(java.lang.String value) {
      * in a different project.
      * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -676,19 +618,17 @@ public Builder clearSecret() {
      * in a different project.
      * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -696,21 +636,19 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @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; @@ -719,22 +657,21 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -742,71 +679,64 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @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); } @@ -816,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SecretKeySelector) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SecretKeySelector) private static final com.google.cloud.run.v2.SecretKeySelector DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.SecretKeySelector(); } @@ -830,16 +760,16 @@ public static com.google.cloud.run.v2.SecretKeySelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretKeySelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretKeySelector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretKeySelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretKeySelector(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java similarity index 57% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java index fa3ba53..a226a5b 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface SecretKeySelectorOrBuilder - extends +public interface SecretKeySelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SecretKeySelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -33,16 +15,11 @@ public interface SecretKeySelectorOrBuilder
    * in a different project.
    * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The secret. */ java.lang.String getSecret(); /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -50,38 +27,31 @@ public interface SecretKeySelectorOrBuilder
    * in a different project.
    * 
* - * - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java similarity index 80% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java index 08e3642..b508e50 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * The secret's value will be presented as the content of a file whose
  * name is defined in the item path. If no items are defined, the name of
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.SecretVolumeSource}
  */
-public final class SecretVolumeSource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SecretVolumeSource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SecretVolumeSource)
     SecretVolumeSourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SecretVolumeSource.newBuilder() to construct.
   private SecretVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SecretVolumeSource() {
     secret_ = "";
     items_ = java.util.Collections.emptyList();
@@ -46,15 +28,16 @@ private SecretVolumeSource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SecretVolumeSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SecretVolumeSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,36 +57,33 @@ private SecretVolumeSource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              secret_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                items_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              items_.add(
-                  input.readMessage(
-                      com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry));
-              break;
-            }
-          case 24:
-            {
-              defaultMode_ = input.readInt32();
-              break;
+            secret_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              items_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            items_.add(
+                input.readMessage(com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry));
+            break;
+          }
+          case 24: {
+
+            defaultMode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,7 +91,8 @@ private SecretVolumeSource(
     } 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)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -120,27 +101,22 @@ private SecretVolumeSource(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.SecretVolumeSource.class,
-            com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
+            com.google.cloud.run.v2.SecretVolumeSource.class, com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
   }
 
   public static final int SECRET_FIELD_NUMBER = 1;
   private volatile java.lang.Object secret_;
   /**
-   *
-   *
    * 
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -149,7 +125,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secret. */ @java.lang.Override @@ -158,15 +133,14 @@ 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; } } /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -175,15 +149,16 @@ public java.lang.String getSecret() {
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -194,8 +169,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** - * - * *
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -211,8 +184,6 @@ public java.util.List getItemsList() {
     return items_;
   }
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -224,13 +195,11 @@ public java.util.List getItemsList() {
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getItemsOrBuilderList() {
     return items_;
   }
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -246,8 +215,6 @@ public int getItemsCount() {
     return items_.size();
   }
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -263,8 +230,6 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
     return items_.get(index);
   }
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -276,15 +241,14 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index) {
+  public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
+      int index) {
     return items_.get(index);
   }
 
   public static final int DEFAULT_MODE_FIELD_NUMBER = 3;
   private int defaultMode_;
   /**
-   *
-   *
    * 
    * Integer representation of mode bits to use on created files by default.
    * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -304,7 +268,6 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
    * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -313,7 +276,6 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +287,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(secret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secret_); } @@ -348,10 +311,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secret_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); } if (defaultMode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, defaultMode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, defaultMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,17 +326,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.run.v2.SecretVolumeSource)) { return super.equals(obj); } - com.google.cloud.run.v2.SecretVolumeSource other = - (com.google.cloud.run.v2.SecretVolumeSource) obj; + com.google.cloud.run.v2.SecretVolumeSource other = (com.google.cloud.run.v2.SecretVolumeSource) obj; - if (!getSecret().equals(other.getSecret())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; - if (getDefaultMode() != other.getDefaultMode()) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (getDefaultMode() + != other.getDefaultMode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,104 +363,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.SecretVolumeSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.SecretVolumeSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.SecretVolumeSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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 secret's value will be presented as the content of a file whose
    * name is defined in the item path. If no items are defined, the name of
@@ -502,23 +462,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.SecretVolumeSource}
    */
-  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.run.v2.SecretVolumeSource)
       com.google.cloud.run.v2.SecretVolumeSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.SecretVolumeSource.class,
-              com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
+              com.google.cloud.run.v2.SecretVolumeSource.class, com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.SecretVolumeSource.newBuilder()
@@ -526,17 +484,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) {
         getItemsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -554,9 +512,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
     }
 
     @java.lang.Override
@@ -575,8 +533,7 @@ public com.google.cloud.run.v2.SecretVolumeSource build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.SecretVolumeSource buildPartial() {
-      com.google.cloud.run.v2.SecretVolumeSource result =
-          new com.google.cloud.run.v2.SecretVolumeSource(this);
+      com.google.cloud.run.v2.SecretVolumeSource result = new com.google.cloud.run.v2.SecretVolumeSource(this);
       int from_bitField0_ = bitField0_;
       result.secret_ = secret_;
       if (itemsBuilder_ == null) {
@@ -597,39 +554,38 @@ public com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource) {
-        return mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) other);
+        return mergeFrom((com.google.cloud.run.v2.SecretVolumeSource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -660,10 +616,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.SecretVolumeSource other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -700,13 +655,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object secret_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -715,13 +667,13 @@ public Builder mergeFrom(
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -730,8 +682,6 @@ public java.lang.String getSecret() { } } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -740,14 +690,15 @@ public java.lang.String getSecret() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -755,8 +706,6 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -765,22 +714,20 @@ public com.google.protobuf.ByteString getSecretBytes() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -789,18 +736,15 @@ public Builder setSecret(java.lang.String value) {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -809,40 +753,34 @@ public Builder clearSecret() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VersionToPath, - com.google.cloud.run.v2.VersionToPath.Builder, - com.google.cloud.run.v2.VersionToPathOrBuilder> - itemsBuilder_; + com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder> itemsBuilder_; /** - * - * *
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -861,8 +799,6 @@ public java.util.List getItemsList() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -881,8 +817,6 @@ public int getItemsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -901,8 +835,6 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -913,7 +845,8 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder setItems(int index, com.google.cloud.run.v2.VersionToPath value) {
+    public Builder setItems(
+        int index, com.google.cloud.run.v2.VersionToPath value) {
       if (itemsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -927,8 +860,6 @@ public Builder setItems(int index, com.google.cloud.run.v2.VersionToPath value)
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -951,8 +882,6 @@ public Builder setItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -977,8 +906,6 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -989,7 +916,8 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath value) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder addItems(int index, com.google.cloud.run.v2.VersionToPath value) {
+    public Builder addItems(
+        int index, com.google.cloud.run.v2.VersionToPath value) {
       if (itemsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1003,8 +931,6 @@ public Builder addItems(int index, com.google.cloud.run.v2.VersionToPath value)
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1015,7 +941,8 @@ public Builder addItems(int index, com.google.cloud.run.v2.VersionToPath value)
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder addItems(com.google.cloud.run.v2.VersionToPath.Builder builderForValue) {
+    public Builder addItems(
+        com.google.cloud.run.v2.VersionToPath.Builder builderForValue) {
       if (itemsBuilder_ == null) {
         ensureItemsIsMutable();
         items_.add(builderForValue.build());
@@ -1026,8 +953,6 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1050,8 +975,6 @@ public Builder addItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1066,7 +989,8 @@ public Builder addAllItems(
         java.lang.Iterable values) {
       if (itemsBuilder_ == null) {
         ensureItemsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, items_);
         onChanged();
       } else {
         itemsBuilder_.addAllMessages(values);
@@ -1074,8 +998,6 @@ public Builder addAllItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1097,8 +1019,6 @@ public Builder clearItems() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1120,8 +1040,6 @@ public Builder removeItems(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1132,12 +1050,11 @@ public Builder removeItems(int index) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(int index) {
+    public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(
+        int index) {
       return getItemsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1148,16 +1065,14 @@ public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(int index)
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index) {
+    public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
+        int index) {
       if (itemsBuilder_ == null) {
-        return items_.get(index);
-      } else {
+        return items_.get(index);  } else {
         return itemsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1168,8 +1083,8 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public java.util.List
-        getItemsOrBuilderList() {
+    public java.util.List 
+         getItemsOrBuilderList() {
       if (itemsBuilder_ != null) {
         return itemsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1177,8 +1092,6 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1190,12 +1103,10 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
     public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder() {
-      return getItemsFieldBuilder()
-          .addBuilder(com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
+      return getItemsFieldBuilder().addBuilder(
+          com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1206,13 +1117,12 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder() {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(int index) {
-      return getItemsFieldBuilder()
-          .addBuilder(index, com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
+    public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
+        int index) {
+      return getItemsFieldBuilder().addBuilder(
+          index, com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1223,31 +1133,27 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(int index)
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public java.util.List getItemsBuilderList() {
+    public java.util.List 
+         getItemsBuilderList() {
       return getItemsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.VersionToPath,
-            com.google.cloud.run.v2.VersionToPath.Builder,
-            com.google.cloud.run.v2.VersionToPathOrBuilder>
+        com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder> 
         getItemsFieldBuilder() {
       if (itemsBuilder_ == null) {
-        itemsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.run.v2.VersionToPath,
-                com.google.cloud.run.v2.VersionToPath.Builder,
-                com.google.cloud.run.v2.VersionToPathOrBuilder>(
-                items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder>(
+                items_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         items_ = null;
       }
       return itemsBuilder_;
     }
 
-    private int defaultMode_;
+    private int defaultMode_ ;
     /**
-     *
-     *
      * 
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1267,7 +1173,6 @@ public java.util.List getItemsBui
      * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -1275,8 +1180,6 @@ public int getDefaultMode() { return defaultMode_; } /** - * - * *
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1296,19 +1199,16 @@ public int getDefaultMode() {
      * 
* * int32 default_mode = 3; - * * @param value The defaultMode to set. * @return This builder for chaining. */ public Builder setDefaultMode(int value) { - + defaultMode_ = value; onChanged(); return this; } /** - * - * *
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1328,18 +1228,17 @@ public Builder setDefaultMode(int value) {
      * 
* * int32 default_mode = 3; - * * @return This builder for chaining. */ public Builder clearDefaultMode() { - + defaultMode_ = 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); } @@ -1349,12 +1248,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SecretVolumeSource) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SecretVolumeSource) private static final com.google.cloud.run.v2.SecretVolumeSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.SecretVolumeSource(); } @@ -1363,16 +1262,16 @@ public static com.google.cloud.run.v2.SecretVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVolumeSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVolumeSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVolumeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVolumeSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,4 +1286,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java similarity index 83% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java index 511e5a6..1b443eb 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface SecretVolumeSourceOrBuilder - extends +public interface SecretVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SecretVolumeSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -34,13 +16,10 @@ public interface SecretVolumeSourceOrBuilder
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -49,14 +28,12 @@ public interface SecretVolumeSourceOrBuilder
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -67,10 +44,9 @@ public interface SecretVolumeSourceOrBuilder
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  java.util.List getItemsList();
+  java.util.List 
+      getItemsList();
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -83,8 +59,6 @@ public interface SecretVolumeSourceOrBuilder
    */
   com.google.cloud.run.v2.VersionToPath getItems(int index);
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -97,8 +71,6 @@ public interface SecretVolumeSourceOrBuilder
    */
   int getItemsCount();
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -109,10 +81,9 @@ public interface SecretVolumeSourceOrBuilder
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  java.util.List getItemsOrBuilderList();
+  java.util.List 
+      getItemsOrBuilderList();
   /**
-   *
-   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -123,11 +94,10 @@ public interface SecretVolumeSourceOrBuilder
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index);
+  com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Integer representation of mode bits to use on created files by default.
    * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -147,7 +117,6 @@ public interface SecretVolumeSourceOrBuilder
    * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ int getDefaultMode(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index 23e71c3..1ca8d15 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Service acts as a top-level container that manages a set of
  * configurations and revision templates which implement a network service.
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Service}
  */
-public final class Service extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Service extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Service)
     ServiceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Service.newBuilder() to construct.
   private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Service() {
     name_ = "";
     description_ = "";
@@ -62,15 +44,16 @@ private Service() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Service();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Service(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,287 +73,250 @@ private Service(
           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;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              uid_ = s;
-              break;
+            uid_ = s;
+            break;
+          }
+          case 32: {
+
+            generation_ = input.readInt64();
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 32:
-            {
-              generation_ = input.readInt64();
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              annotations_ = com.google.protobuf.MapField.newMapField(
+                  AnnotationsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 42:
-            {
-              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
+            annotations__ = input.readMessage(
+                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            annotations_.getMutableMap().put(
+                annotations__.getKey(), annotations__.getValue());
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                annotations_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AnnotationsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry annotations__ =
-                  input.readMessage(
-                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              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;
+
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 66:
-            {
-              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 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (deleteTime_ != null) {
-                subBuilder = deleteTime_.toBuilder();
-              }
-              deleteTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deleteTime_);
-                deleteTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteTime_ != null) {
+              subBuilder = deleteTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expireTime_ != null) {
-                subBuilder = expireTime_.toBuilder();
-              }
-              expireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(expireTime_);
-                expireTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteTime_);
+              deleteTime_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              creator_ = s;
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.toBuilder();
             }
-          case 98:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              lastModifier_ = s;
-              break;
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              client_ = s;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              clientVersion_ = s;
-              break;
-            }
-          case 120:
-            {
-              int rawValue = input.readEnum();
+            creator_ = s;
+            break;
+          }
+          case 98: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              ingress_ = rawValue;
-              break;
-            }
-          case 128:
-            {
-              int rawValue = input.readEnum();
+            lastModifier_ = s;
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              launchStage_ = rawValue;
-              break;
-            }
-          case 138:
-            {
-              com.google.cloud.run.v2.BinaryAuthorization.Builder subBuilder = null;
-              if (binaryAuthorization_ != null) {
-                subBuilder = binaryAuthorization_.toBuilder();
-              }
-              binaryAuthorization_ =
-                  input.readMessage(
-                      com.google.cloud.run.v2.BinaryAuthorization.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(binaryAuthorization_);
-                binaryAuthorization_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 146:
-            {
-              com.google.cloud.run.v2.RevisionTemplate.Builder subBuilder = null;
-              if (template_ != null) {
-                subBuilder = template_.toBuilder();
-              }
-              template_ =
-                  input.readMessage(
-                      com.google.cloud.run.v2.RevisionTemplate.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(template_);
-                template_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 154:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                traffic_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              traffic_.add(
-                  input.readMessage(
-                      com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry));
-              break;
+            client_ = s;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            clientVersion_ = s;
+            break;
+          }
+          case 120: {
+            int rawValue = input.readEnum();
+
+            ingress_ = rawValue;
+            break;
+          }
+          case 128: {
+            int rawValue = input.readEnum();
+
+            launchStage_ = rawValue;
+            break;
+          }
+          case 138: {
+            com.google.cloud.run.v2.BinaryAuthorization.Builder subBuilder = null;
+            if (binaryAuthorization_ != null) {
+              subBuilder = binaryAuthorization_.toBuilder();
             }
-          case 240:
-            {
-              observedGeneration_ = input.readInt64();
-              break;
+            binaryAuthorization_ = input.readMessage(com.google.cloud.run.v2.BinaryAuthorization.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(binaryAuthorization_);
+              binaryAuthorization_ = subBuilder.buildPartial();
             }
-          case 250:
-            {
-              com.google.cloud.run.v2.Condition.Builder subBuilder = null;
-              if (terminalCondition_ != null) {
-                subBuilder = terminalCondition_.toBuilder();
-              }
-              terminalCondition_ =
-                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(terminalCondition_);
-                terminalCondition_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 146: {
+            com.google.cloud.run.v2.RevisionTemplate.Builder subBuilder = null;
+            if (template_ != null) {
+              subBuilder = template_.toBuilder();
             }
-          case 258:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                conditions_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              conditions_.add(
-                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-              break;
+            template_ = input.readMessage(com.google.cloud.run.v2.RevisionTemplate.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(template_);
+              template_ = subBuilder.buildPartial();
             }
-          case 266:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              latestReadyRevision_ = s;
-              break;
+            break;
+          }
+          case 154: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              traffic_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 274:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            traffic_.add(
+                input.readMessage(com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry));
+            break;
+          }
+          case 240: {
 
-              latestCreatedRevision_ = s;
-              break;
+            observedGeneration_ = input.readInt64();
+            break;
+          }
+          case 250: {
+            com.google.cloud.run.v2.Condition.Builder subBuilder = null;
+            if (terminalCondition_ != null) {
+              subBuilder = terminalCondition_.toBuilder();
             }
-          case 282:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                trafficStatuses_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              trafficStatuses_.add(
-                  input.readMessage(
-                      com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry));
-              break;
+            terminalCondition_ = input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(terminalCondition_);
+              terminalCondition_ = subBuilder.buildPartial();
             }
-          case 290:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
-            }
-          case 784:
-            {
-              reconciling_ = input.readBool();
-              break;
+            break;
+          }
+          case 258: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              conditions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 794:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            conditions_.add(
+                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
+            break;
+          }
+          case 266: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            latestReadyRevision_ = s;
+            break;
+          }
+          case 274: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            latestCreatedRevision_ = s;
+            break;
+          }
+          case 282: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              trafficStatuses_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            trafficStatuses_.add(
+                input.readMessage(com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry));
+            break;
+          }
+          case 290: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            uri_ = s;
+            break;
+          }
+          case 784: {
+
+            reconciling_ = input.readBool();
+            break;
+          }
+          case 794: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            etag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -378,7 +324,8 @@ private Service(
     } 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_ & 0x00000004) != 0)) {
         traffic_ = java.util.Collections.unmodifiableList(traffic_);
@@ -393,30 +340,29 @@ private Service(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.run.v2.ServiceProto
-        .internal_static_google_cloud_run_v2_Service_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_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 5:
         return internalGetLabels();
       case 6:
         return internalGetAnnotations();
       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.run.v2.ServiceProto
-        .internal_static_google_cloud_run_v2_Service_fieldAccessorTable
+    return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Service.class, com.google.cloud.run.v2.Service.Builder.class);
   }
@@ -424,8 +370,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -435,7 +379,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -444,15 +387,14 @@ 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 fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -462,15 +404,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -481,15 +424,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -498,30 +438,30 @@ 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 the Service. This field currently has a
    * 512-character limit.
    * 
* * 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 { @@ -532,15 +472,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UID_FIELD_NUMBER = 3; private volatile java.lang.Object uid_; /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -549,30 +486,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -583,8 +520,6 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_; /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -593,7 +528,6 @@ public com.google.protobuf.ByteString getUidBytes() {
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -602,23 +536,24 @@ public long getGeneration() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_Service_LabelsEntry_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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_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() { + 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_; } @@ -627,8 +562,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -644,22 +577,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -676,12 +609,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -698,16 +630,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5;
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -724,11 +656,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 5;
    */
   @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();
     }
@@ -736,24 +669,24 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 6;
-
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.run.v2.ServiceProto
-                .internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField annotations_;
-
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> annotations_;
   private com.google.protobuf.MapField
-      internalGetAnnotations() {
+  internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
@@ -762,8 +695,6 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -775,22 +706,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
+
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -803,12 +734,11 @@ public java.util.Map getAnnotations() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
+
   public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -821,17 +751,16 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
+
   public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -844,11 +773,12 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -858,15 +788,11 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -874,15 +800,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -890,14 +812,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -907,15 +826,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -923,15 +838,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -939,14 +850,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -956,15 +864,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -972,15 +876,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -988,14 +888,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1005,16 +902,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1022,16 +915,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1039,15 +928,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1057,14 +943,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 11; private volatile java.lang.Object creator_; /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ @java.lang.Override @@ -1073,29 +956,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -1106,14 +989,11 @@ public com.google.protobuf.ByteString getCreatorBytes() { public static final int LAST_MODIFIER_FIELD_NUMBER = 12; private volatile java.lang.Object lastModifier_; /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifier. */ @java.lang.Override @@ -1122,29 +1002,29 @@ public java.lang.String getLastModifier() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastModifier_ = s; return s; } } /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastModifier. */ @java.lang.Override - public com.google.protobuf.ByteString getLastModifierBytes() { + public com.google.protobuf.ByteString + getLastModifierBytes() { java.lang.Object ref = lastModifier_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastModifier_ = b; return b; } else { @@ -1155,14 +1035,11 @@ public com.google.protobuf.ByteString getLastModifierBytes() { public static final int CLIENT_FIELD_NUMBER = 13; private volatile java.lang.Object client_; /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The client. */ @java.lang.Override @@ -1171,29 +1048,29 @@ public java.lang.String getClient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); client_ = s; return s; } } /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The bytes for client. */ @java.lang.Override - public com.google.protobuf.ByteString getClientBytes() { + public com.google.protobuf.ByteString + getClientBytes() { java.lang.Object ref = client_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); client_ = b; return b; } else { @@ -1204,14 +1081,11 @@ public com.google.protobuf.ByteString getClientBytes() { public static final int CLIENT_VERSION_FIELD_NUMBER = 14; private volatile java.lang.Object clientVersion_; /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The clientVersion. */ @java.lang.Override @@ -1220,29 +1094,29 @@ public java.lang.String getClientVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientVersion_ = s; return s; } } /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The bytes for clientVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getClientVersionBytes() { + public com.google.protobuf.ByteString + getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientVersion_ = b; return b; } else { @@ -1253,8 +1127,6 @@ public com.google.protobuf.ByteString getClientVersionBytes() { public static final int INGRESS_FIELD_NUMBER = 15; private int ingress_; /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -1262,16 +1134,12 @@ public com.google.protobuf.ByteString getClientVersionBytes() {
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The enum numeric value on the wire for ingress. */ - @java.lang.Override - public int getIngressValue() { + @java.lang.Override public int getIngressValue() { return ingress_; } /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -1279,22 +1147,17 @@ public int getIngressValue() {
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The ingress. */ - @java.lang.Override - public com.google.cloud.run.v2.IngressTraffic getIngress() { + @java.lang.Override public com.google.cloud.run.v2.IngressTraffic getIngress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.IngressTraffic result = - com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); + com.google.cloud.run.v2.IngressTraffic result = com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); return result == null ? com.google.cloud.run.v2.IngressTraffic.UNRECOGNIZED : result; } public static final int LAUNCH_STAGE_FIELD_NUMBER = 16; private int launchStage_; /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -1303,16 +1166,12 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() {
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -1321,11 +1180,9 @@ public int getLaunchStageValue() {
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ - @java.lang.Override - public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; @@ -1334,14 +1191,11 @@ public com.google.api.LaunchStage getLaunchStage() { public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 17; private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return Whether the binaryAuthorization field is set. */ @java.lang.Override @@ -1349,25 +1203,18 @@ public boolean hasBinaryAuthorization() { return binaryAuthorization_ != null; } /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return The binaryAuthorization. */ @java.lang.Override public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { - return binaryAuthorization_ == null - ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; + return binaryAuthorization_ == null ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; } /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
@@ -1382,16 +1229,11 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati public static final int TEMPLATE_FIELD_NUMBER = 18; private com.google.cloud.run.v2.RevisionTemplate template_; /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ @java.lang.Override @@ -1399,34 +1241,23 @@ public boolean hasTemplate() { return template_ != null; } /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ @java.lang.Override public com.google.cloud.run.v2.RevisionTemplate getTemplate() { - return template_ == null - ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; } /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() { @@ -1436,8 +1267,6 @@ public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() public static final int TRAFFIC_FIELD_NUMBER = 19; private java.util.List traffic_; /** - * - * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1451,8 +1280,6 @@ public java.util.List getTrafficList() {
     return traffic_;
   }
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1462,13 +1289,11 @@ public java.util.List getTrafficList() {
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTrafficOrBuilderList() {
     return traffic_;
   }
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1482,8 +1307,6 @@ public int getTrafficCount() {
     return traffic_.size();
   }
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1497,8 +1320,6 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
     return traffic_.get(index);
   }
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1508,15 +1329,14 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) {
+  public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
+      int index) {
     return traffic_.get(index);
   }
 
   public static final int OBSERVED_GENERATION_FIELD_NUMBER = 30;
   private long observedGeneration_;
   /**
-   *
-   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -1526,7 +1346,6 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -1537,8 +1356,6 @@ public long getObservedGeneration() { public static final int TERMINAL_CONDITION_FIELD_NUMBER = 31; private com.google.cloud.run.v2.Condition terminalCondition_; /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1546,10 +1363,7 @@ public long getObservedGeneration() {
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalCondition field is set. */ @java.lang.Override @@ -1557,8 +1371,6 @@ public boolean hasTerminalCondition() { return terminalCondition_ != null; } /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1566,21 +1378,14 @@ public boolean hasTerminalCondition() {
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalCondition. */ @java.lang.Override public com.google.cloud.run.v2.Condition getTerminalCondition() { - return terminalCondition_ == null - ? com.google.cloud.run.v2.Condition.getDefaultInstance() - : terminalCondition_; + return terminalCondition_ == null ? com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; } /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1588,9 +1393,7 @@ public com.google.cloud.run.v2.Condition getTerminalCondition() {
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { @@ -1600,8 +1403,6 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder( public static final int CONDITIONS_FIELD_NUMBER = 32; private java.util.List conditions_; /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1609,17 +1410,13 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1627,18 +1424,14 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1646,17 +1439,13 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1664,17 +1453,13 @@ public int getConditionsCount() {
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.run.v2.Condition getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1682,30 +1467,24 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } public static final int LATEST_READY_REVISION_FIELD_NUMBER = 33; private volatile java.lang.Object latestReadyRevision_; /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestReadyRevision. */ @java.lang.Override @@ -1714,33 +1493,31 @@ public java.lang.String getLatestReadyRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestReadyRevision_ = s; return s; } } /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestReadyRevision. */ @java.lang.Override - public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { + public com.google.protobuf.ByteString + getLatestReadyRevisionBytes() { java.lang.Object ref = latestReadyRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); latestReadyRevision_ = b; return b; } else { @@ -1751,17 +1528,12 @@ public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { public static final int LATEST_CREATED_REVISION_FIELD_NUMBER = 34; private volatile java.lang.Object latestCreatedRevision_; /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestCreatedRevision. */ @java.lang.Override @@ -1770,32 +1542,30 @@ public java.lang.String getLatestCreatedRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestCreatedRevision_ = s; return s; } } /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestCreatedRevision. */ @java.lang.Override - public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { + public com.google.protobuf.ByteString + getLatestCreatedRevisionBytes() { java.lang.Object ref = latestCreatedRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); latestCreatedRevision_ = b; return b; } else { @@ -1806,86 +1576,66 @@ public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { public static final int TRAFFIC_STATUSES_FIELD_NUMBER = 35; private java.util.List trafficStatuses_; /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getTrafficStatusesList() { return trafficStatuses_; } /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getTrafficStatusesOrBuilderList() { return trafficStatuses_; } /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTrafficStatusesCount() { return trafficStatuses_.size(); } /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) { return trafficStatuses_.get(index); } /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( @@ -1896,14 +1646,11 @@ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOr public static final int URI_FIELD_NUMBER = 36; private volatile java.lang.Object uri_; /** - * - * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -1912,29 +1659,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. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.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 { @@ -1945,8 +1692,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int RECONCILING_FIELD_NUMBER = 98; private boolean reconciling_; /** - * - * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -1970,7 +1715,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1981,15 +1725,12 @@ public boolean getReconciling() { public static final int ETAG_FIELD_NUMBER = 99; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1998,30 +1739,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -2030,7 +1771,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2042,7 +1782,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_); } @@ -2055,10 +1796,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (generation_ != 0L) { output.writeInt64(4, generation_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 6); if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } @@ -2083,8 +1832,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, clientVersion_); } - if (ingress_ - != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { + if (ingress_ != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { output.writeEnum(15, ingress_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { @@ -2145,39 +1893,44 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, generation_); - } - 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(5, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, generation_); + } + 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(5, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, creator_); @@ -2191,31 +1944,37 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, clientVersion_); } - if (ingress_ - != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, ingress_); + if (ingress_ != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, ingress_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, launchStage_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, launchStage_); } if (binaryAuthorization_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, getBinaryAuthorization()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getBinaryAuthorization()); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getTemplate()); } for (int i = 0; i < traffic_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, traffic_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, traffic_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, observedGeneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(30, observedGeneration_); } if (terminalCondition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getTerminalCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getTerminalCondition()); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, conditions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestReadyRevision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, latestReadyRevision_); @@ -2224,13 +1983,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, latestCreatedRevision_); } for (int i = 0; i < trafficStatuses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, trafficStatuses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, trafficStatuses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, uri_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(98, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(98, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -2243,62 +2004,88 @@ 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.run.v2.Service)) { return super.equals(obj); } com.google.cloud.run.v2.Service other = (com.google.cloud.run.v2.Service) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getGeneration() != other.getGeneration()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getGeneration() + != other.getGeneration()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!getCreator().equals(other.getCreator())) return false; - if (!getLastModifier().equals(other.getLastModifier())) return false; - if (!getClient().equals(other.getClient())) return false; - if (!getClientVersion().equals(other.getClientVersion())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!getCreator() + .equals(other.getCreator())) return false; + if (!getLastModifier() + .equals(other.getLastModifier())) return false; + if (!getClient() + .equals(other.getClient())) return false; + if (!getClientVersion() + .equals(other.getClientVersion())) return false; if (ingress_ != other.ingress_) return false; if (launchStage_ != other.launchStage_) return false; if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; if (hasBinaryAuthorization()) { - if (!getBinaryAuthorization().equals(other.getBinaryAuthorization())) return false; + if (!getBinaryAuthorization() + .equals(other.getBinaryAuthorization())) return false; } if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; + if (!getTemplate() + .equals(other.getTemplate())) return false; } - if (!getTrafficList().equals(other.getTrafficList())) return false; - if (getObservedGeneration() != other.getObservedGeneration()) return false; + if (!getTrafficList() + .equals(other.getTrafficList())) return false; + if (getObservedGeneration() + != other.getObservedGeneration()) return false; if (hasTerminalCondition() != other.hasTerminalCondition()) return false; if (hasTerminalCondition()) { - if (!getTerminalCondition().equals(other.getTerminalCondition())) return false; - } - if (!getConditionsList().equals(other.getConditionsList())) return false; - if (!getLatestReadyRevision().equals(other.getLatestReadyRevision())) return false; - if (!getLatestCreatedRevision().equals(other.getLatestCreatedRevision())) return false; - if (!getTrafficStatusesList().equals(other.getTrafficStatusesList())) return false; - if (!getUri().equals(other.getUri())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getTerminalCondition() + .equals(other.getTerminalCondition())) return false; + } + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (!getLatestReadyRevision() + .equals(other.getLatestReadyRevision())) return false; + if (!getLatestCreatedRevision() + .equals(other.getLatestCreatedRevision())) return false; + if (!getTrafficStatusesList() + .equals(other.getTrafficStatusesList())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2317,7 +2104,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().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()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -2367,7 +2155,8 @@ public int hashCode() { hash = (53 * hash) + getTrafficList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); if (hasTerminalCondition()) { hash = (37 * hash) + TERMINAL_CONDITION_FIELD_NUMBER; hash = (53 * hash) + getTerminalCondition().hashCode(); @@ -2387,7 +2176,8 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2395,103 +2185,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Service parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Service parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Service 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.run.v2.Service parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.Service parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Service 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.run.v2.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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; } /** - * - * *
    * Service acts as a top-level container that manages a set of
    * configurations and revision templates which implement a network service.
@@ -2502,44 +2286,45 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.Service}
    */
-  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.run.v2.Service)
       com.google.cloud.run.v2.ServiceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.ServiceProto
-          .internal_static_google_cloud_run_v2_Service_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         case 6:
           return internalGetAnnotations();
         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 5:
           return internalGetMutableLabels();
         case 6:
           return internalGetMutableAnnotations();
         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.run.v2.ServiceProto
-          .internal_static_google_cloud_run_v2_Service_fieldAccessorTable
+      return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.run.v2.Service.class, com.google.cloud.run.v2.Service.Builder.class);
     }
@@ -2549,19 +2334,19 @@ 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) {
         getTrafficFieldBuilder();
         getConditionsFieldBuilder();
         getTrafficStatusesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2663,9 +2448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.ServiceProto
-          .internal_static_google_cloud_run_v2_Service_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_descriptor;
     }
 
     @java.lang.Override
@@ -2776,39 +2561,38 @@ public com.google.cloud.run.v2.Service 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.run.v2.Service) {
-        return mergeFrom((com.google.cloud.run.v2.Service) other);
+        return mergeFrom((com.google.cloud.run.v2.Service)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2832,8 +2616,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
       if (other.getGeneration() != 0L) {
         setGeneration(other.getGeneration());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -2892,10 +2678,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             trafficBuilder_ = null;
             traffic_ = other.traffic_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            trafficBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTrafficFieldBuilder()
-                    : null;
+            trafficBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTrafficFieldBuilder() : null;
           } else {
             trafficBuilder_.addAllMessages(other.traffic_);
           }
@@ -2925,10 +2710,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2960,10 +2744,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             trafficStatusesBuilder_ = null;
             trafficStatuses_ = other.trafficStatuses_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            trafficStatusesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTrafficStatusesFieldBuilder()
-                    : null;
+            trafficStatusesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTrafficStatusesFieldBuilder() : null;
           } else {
             trafficStatusesBuilder_.addAllMessages(other.trafficStatuses_);
           }
@@ -3008,13 +2791,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -3024,13 +2804,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -3039,8 +2819,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -3050,14 +2828,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -3065,8 +2844,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -3076,22 +2853,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -3101,18 +2876,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -3122,16 +2894,16 @@ public Builder clearName() {
      * 
* * 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; @@ -3139,21 +2911,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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; @@ -3162,22 +2932,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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 { @@ -3185,64 +2954,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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 the Service. This field currently has a
      * 512-character limit.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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; @@ -3250,21 +3012,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3273,22 +3033,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -3296,73 +3055,64 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3371,7 +3121,6 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -3379,8 +3128,6 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3389,19 +3136,16 @@ public long getGeneration() {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3410,31 +3154,31 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 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(); @@ -3446,8 +3190,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3463,22 +3205,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3495,12 +3237,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3517,17 +3258,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5;
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3544,11 +3284,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5;
      */
     @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();
       }
@@ -3556,12 +3297,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3577,21 +3317,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3607,20 +3349,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 5;
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3636,29 +3377,30 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 5;
      */
-    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 annotations_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> annotations_;
     private com.google.protobuf.MapField
-        internalGetAnnotations() {
+    internalGetAnnotations() {
       if (annotations_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AnnotationsDefaultEntryHolder.defaultEntry);
       }
       return annotations_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableAnnotations() {
-      onChanged();
-      ;
+    internalGetMutableAnnotations() {
+      onChanged();;
       if (annotations_ == null) {
-        annotations_ =
-            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ = com.google.protobuf.MapField.newMapField(
+            AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -3670,8 +3412,6 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3683,22 +3423,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
+
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3711,12 +3451,11 @@ public java.util.Map getAnnotations() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
+
     public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3729,17 +3468,16 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
+
     public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3752,11 +3490,12 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3764,12 +3503,11 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
     }
 
     public Builder clearAnnotations() {
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3781,21 +3519,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+    getMutableAnnotations() {
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3807,20 +3547,19 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putAnnotations(
+        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");
+}
 
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3832,65 +3571,49 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     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_;
     /**
-     *
-     *
      * 
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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(); } } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3906,17 +3629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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(); @@ -3927,21 +3647,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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; } @@ -3953,15 +3669,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3975,64 +3687,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -4040,58 +3736,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4107,17 +3784,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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(); @@ -4128,21 +3802,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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; } @@ -4154,15 +3824,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4176,64 +3842,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.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_; @@ -4241,58 +3891,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4308,17 +3939,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -4329,21 +3957,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -4355,15 +3979,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -4377,64 +3997,48 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The deletion time.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4442,61 +4046,42 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4512,18 +4097,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -4534,22 +4116,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -4561,16 +4139,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -4584,67 +4158,51 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4652,20 +4210,18 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object creator_ = ""; /** - * - * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -4674,21 +4230,20 @@ public java.lang.String getCreator() { } } /** - * - * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -4696,61 +4251,54 @@ public com.google.protobuf.ByteString getCreatorBytes() { } } /** - * - * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator(java.lang.String value) { + public Builder setCreator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** - * - * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + public Builder setCreatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -4758,20 +4306,18 @@ public Builder setCreatorBytes(com.google.protobuf.ByteString value) { private java.lang.Object lastModifier_ = ""; /** - * - * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifier. */ public java.lang.String getLastModifier() { java.lang.Object ref = lastModifier_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastModifier_ = s; return s; @@ -4780,21 +4326,20 @@ public java.lang.String getLastModifier() { } } /** - * - * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastModifier. */ - public com.google.protobuf.ByteString getLastModifierBytes() { + public com.google.protobuf.ByteString + getLastModifierBytes() { java.lang.Object ref = lastModifier_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastModifier_ = b; return b; } else { @@ -4802,61 +4347,54 @@ public com.google.protobuf.ByteString getLastModifierBytes() { } } /** - * - * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastModifier to set. * @return This builder for chaining. */ - public Builder setLastModifier(java.lang.String value) { + public Builder setLastModifier( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastModifier_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastModifier() { - + lastModifier_ = getDefaultInstance().getLastModifier(); onChanged(); return this; } /** - * - * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for lastModifier to set. * @return This builder for chaining. */ - public Builder setLastModifierBytes(com.google.protobuf.ByteString value) { + public Builder setLastModifierBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastModifier_ = value; onChanged(); return this; @@ -4864,20 +4402,18 @@ public Builder setLastModifierBytes(com.google.protobuf.ByteString value) { private java.lang.Object client_ = ""; /** - * - * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; - * * @return The client. */ public java.lang.String getClient() { java.lang.Object ref = client_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); client_ = s; return s; @@ -4886,21 +4422,20 @@ public java.lang.String getClient() { } } /** - * - * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; - * * @return The bytes for client. */ - public com.google.protobuf.ByteString getClientBytes() { + public com.google.protobuf.ByteString + getClientBytes() { java.lang.Object ref = client_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); client_ = b; return b; } else { @@ -4908,61 +4443,54 @@ public com.google.protobuf.ByteString getClientBytes() { } } /** - * - * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; - * * @param value The client to set. * @return This builder for chaining. */ - public Builder setClient(java.lang.String value) { + public Builder setClient( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + client_ = value; onChanged(); return this; } /** - * - * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; - * * @return This builder for chaining. */ public Builder clearClient() { - + client_ = getDefaultInstance().getClient(); onChanged(); return this; } /** - * - * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; - * * @param value The bytes for client to set. * @return This builder for chaining. */ - public Builder setClientBytes(com.google.protobuf.ByteString value) { + public Builder setClientBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + client_ = value; onChanged(); return this; @@ -4970,20 +4498,18 @@ public Builder setClientBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientVersion_ = ""; /** - * - * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; - * * @return The clientVersion. */ public java.lang.String getClientVersion() { java.lang.Object ref = clientVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientVersion_ = s; return s; @@ -4992,21 +4518,20 @@ public java.lang.String getClientVersion() { } } /** - * - * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; - * * @return The bytes for clientVersion. */ - public com.google.protobuf.ByteString getClientVersionBytes() { + public com.google.protobuf.ByteString + getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientVersion_ = b; return b; } else { @@ -5014,61 +4539,54 @@ public com.google.protobuf.ByteString getClientVersionBytes() { } } /** - * - * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; - * * @param value The clientVersion to set. * @return This builder for chaining. */ - public Builder setClientVersion(java.lang.String value) { + public Builder setClientVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientVersion_ = value; onChanged(); return this; } /** - * - * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; - * * @return This builder for chaining. */ public Builder clearClientVersion() { - + clientVersion_ = getDefaultInstance().getClientVersion(); onChanged(); return this; } /** - * - * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; - * * @param value The bytes for clientVersion to set. * @return This builder for chaining. */ - public Builder setClientVersionBytes(com.google.protobuf.ByteString value) { + public Builder setClientVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientVersion_ = value; onChanged(); return this; @@ -5076,8 +4594,6 @@ public Builder setClientVersionBytes(com.google.protobuf.ByteString value) { private int ingress_ = 0; /** - * - * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -5085,16 +4601,12 @@ public Builder setClientVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The enum numeric value on the wire for ingress. */ - @java.lang.Override - public int getIngressValue() { + @java.lang.Override public int getIngressValue() { return ingress_; } /** - * - * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -5102,19 +4614,16 @@ public int getIngressValue() {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @param value The enum numeric value on the wire for ingress to set. * @return This builder for chaining. */ public Builder setIngressValue(int value) { - + ingress_ = value; onChanged(); return this; } /** - * - * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -5122,19 +4631,15 @@ public Builder setIngressValue(int value) {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The ingress. */ @java.lang.Override public com.google.cloud.run.v2.IngressTraffic getIngress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.IngressTraffic result = - com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); + com.google.cloud.run.v2.IngressTraffic result = com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); return result == null ? com.google.cloud.run.v2.IngressTraffic.UNRECOGNIZED : result; } /** - * - * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -5142,7 +4647,6 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @param value The ingress to set. * @return This builder for chaining. */ @@ -5150,14 +4654,12 @@ public Builder setIngress(com.google.cloud.run.v2.IngressTraffic value) { if (value == null) { throw new NullPointerException(); } - + ingress_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -5165,11 +4667,10 @@ public Builder setIngress(com.google.cloud.run.v2.IngressTraffic value) {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return This builder for chaining. */ public Builder clearIngress() { - + ingress_ = 0; onChanged(); return this; @@ -5177,8 +4678,6 @@ public Builder clearIngress() { private int launchStage_ = 0; /** - * - * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -5187,16 +4686,12 @@ public Builder clearIngress() {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -5205,19 +4700,16 @@ public int getLaunchStageValue() {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { - + launchStage_ = value; onChanged(); return this; } /** - * - * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -5226,7 +4718,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ @java.lang.Override @@ -5236,8 +4727,6 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** - * - * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -5246,7 +4735,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -5254,14 +4742,12 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -5270,11 +4756,10 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -5282,47 +4767,34 @@ public Builder clearLaunchStage() { private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, - com.google.cloud.run.v2.BinaryAuthorization.Builder, - com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> - binaryAuthorizationBuilder_; + com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return Whether the binaryAuthorization field is set. */ public boolean hasBinaryAuthorization() { return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return The binaryAuthorization. */ public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { if (binaryAuthorizationBuilder_ == null) { - return binaryAuthorization_ == null - ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; + return binaryAuthorization_ == null ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; } else { return binaryAuthorizationBuilder_.getMessage(); } } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5343,8 +4815,6 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5363,8 +4833,6 @@ public Builder setBinaryAuthorization( return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5375,9 +4843,7 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat if (binaryAuthorizationBuilder_ == null) { if (binaryAuthorization_ != null) { binaryAuthorization_ = - com.google.cloud.run.v2.BinaryAuthorization.newBuilder(binaryAuthorization_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); } else { binaryAuthorization_ = value; } @@ -5389,8 +4855,6 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5409,8 +4873,6 @@ public Builder clearBinaryAuthorization() { return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5418,13 +4880,11 @@ public Builder clearBinaryAuthorization() { * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; */ public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - + onChanged(); return getBinaryAuthorizationFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5435,14 +4895,11 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati if (binaryAuthorizationBuilder_ != null) { return binaryAuthorizationBuilder_.getMessageOrBuilder(); } else { - return binaryAuthorization_ == null - ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; + return binaryAuthorization_ == null ? + com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; } } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5450,17 +4907,14 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, - com.google.cloud.run.v2.BinaryAuthorization.Builder, - com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> + com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> getBinaryAuthorizationFieldBuilder() { if (binaryAuthorizationBuilder_ == null) { - binaryAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, - com.google.cloud.run.v2.BinaryAuthorization.Builder, - com.google.cloud.run.v2.BinaryAuthorizationOrBuilder>( - getBinaryAuthorization(), getParentForChildren(), isClean()); + binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), + getParentForChildren(), + isClean()); binaryAuthorization_ = null; } return binaryAuthorizationBuilder_; @@ -5468,58 +4922,39 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati private com.google.cloud.run.v2.RevisionTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, - com.google.cloud.run.v2.RevisionTemplate.Builder, - com.google.cloud.run.v2.RevisionTemplateOrBuilder> - templateBuilder_; + com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder> templateBuilder_; /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ public com.google.cloud.run.v2.RevisionTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate value) { if (templateBuilder_ == null) { @@ -5535,17 +4970,14 @@ public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate value) { return this; } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate.Builder builderForValue) { + public Builder setTemplate( + com.google.cloud.run.v2.RevisionTemplate.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); @@ -5556,23 +4988,17 @@ public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate.Builder buil return this; } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTemplate(com.google.cloud.run.v2.RevisionTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.run.v2.RevisionTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.RevisionTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } @@ -5584,15 +5010,11 @@ public Builder mergeTemplate(com.google.cloud.run.v2.RevisionTemplate value) { return this; } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -5606,88 +5028,66 @@ public Builder clearTemplate() { return this; } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.RevisionTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null - ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() - : template_; + return template_ == null ? + com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; } } /** - * - * *
      * Required. The template used to create revisions for this Service.
      * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, - com.google.cloud.run.v2.RevisionTemplate.Builder, - com.google.cloud.run.v2.RevisionTemplateOrBuilder> + com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, - com.google.cloud.run.v2.RevisionTemplate.Builder, - com.google.cloud.run.v2.RevisionTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); template_ = null; } return templateBuilder_; } private java.util.List traffic_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTrafficIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { traffic_ = new java.util.ArrayList(traffic_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTarget, - com.google.cloud.run.v2.TrafficTarget.Builder, - com.google.cloud.run.v2.TrafficTargetOrBuilder> - trafficBuilder_; + com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder> trafficBuilder_; /** - * - * *
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5704,8 +5104,6 @@ public java.util.List getTrafficList() {
       }
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5722,8 +5120,6 @@ public int getTrafficCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5740,8 +5136,6 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5750,7 +5144,8 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder setTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) {
+    public Builder setTraffic(
+        int index, com.google.cloud.run.v2.TrafficTarget value) {
       if (trafficBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5764,8 +5159,6 @@ public Builder setTraffic(int index, com.google.cloud.run.v2.TrafficTarget value
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5786,8 +5179,6 @@ public Builder setTraffic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5810,8 +5201,6 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5820,7 +5209,8 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) {
+    public Builder addTraffic(
+        int index, com.google.cloud.run.v2.TrafficTarget value) {
       if (trafficBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5834,8 +5224,6 @@ public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5844,7 +5232,8 @@ public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) {
+    public Builder addTraffic(
+        com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) {
       if (trafficBuilder_ == null) {
         ensureTrafficIsMutable();
         traffic_.add(builderForValue.build());
@@ -5855,8 +5244,6 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5877,8 +5264,6 @@ public Builder addTraffic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5891,7 +5276,8 @@ public Builder addAllTraffic(
         java.lang.Iterable values) {
       if (trafficBuilder_ == null) {
         ensureTrafficIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, traffic_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, traffic_);
         onChanged();
       } else {
         trafficBuilder_.addAllMessages(values);
@@ -5899,8 +5285,6 @@ public Builder addAllTraffic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5920,8 +5304,6 @@ public Builder clearTraffic() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5941,8 +5323,6 @@ public Builder removeTraffic(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5951,12 +5331,11 @@ public Builder removeTraffic(int index) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(int index) {
+    public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(
+        int index) {
       return getTrafficFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5965,16 +5344,14 @@ public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(int index
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) {
+    public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
+        int index) {
       if (trafficBuilder_ == null) {
-        return traffic_.get(index);
-      } else {
+        return traffic_.get(index);  } else {
         return trafficBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5983,8 +5360,8 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public java.util.List
-        getTrafficOrBuilderList() {
+    public java.util.List 
+         getTrafficOrBuilderList() {
       if (trafficBuilder_ != null) {
         return trafficBuilder_.getMessageOrBuilderList();
       } else {
@@ -5992,8 +5369,6 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in
       }
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -6003,12 +5378,10 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
     public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() {
-      return getTrafficFieldBuilder()
-          .addBuilder(com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
+      return getTrafficFieldBuilder().addBuilder(
+          com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -6017,13 +5390,12 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(int index) {
-      return getTrafficFieldBuilder()
-          .addBuilder(index, com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
+    public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(
+        int index) {
+      return getTrafficFieldBuilder().addBuilder(
+          index, com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -6032,31 +5404,27 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(int index
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public java.util.List getTrafficBuilderList() {
+    public java.util.List 
+         getTrafficBuilderList() {
       return getTrafficFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.TrafficTarget,
-            com.google.cloud.run.v2.TrafficTarget.Builder,
-            com.google.cloud.run.v2.TrafficTargetOrBuilder>
+        com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder> 
         getTrafficFieldBuilder() {
       if (trafficBuilder_ == null) {
-        trafficBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.run.v2.TrafficTarget,
-                com.google.cloud.run.v2.TrafficTarget.Builder,
-                com.google.cloud.run.v2.TrafficTargetOrBuilder>(
-                traffic_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        trafficBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder>(
+                traffic_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         traffic_ = null;
       }
       return trafficBuilder_;
     }
 
-    private long observedGeneration_;
+    private long observedGeneration_ ;
     /**
-     *
-     *
      * 
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6066,7 +5434,6 @@ public java.util.List getTrafficB
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -6074,8 +5441,6 @@ public long getObservedGeneration() { return observedGeneration_; } /** - * - * *
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6085,19 +5450,16 @@ public long getObservedGeneration() {
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The observedGeneration to set. * @return This builder for chaining. */ public Builder setObservedGeneration(long value) { - + observedGeneration_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -6107,11 +5469,10 @@ public Builder setObservedGeneration(long value) {
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; @@ -6119,13 +5480,8 @@ public Builder clearObservedGeneration() { private com.google.cloud.run.v2.Condition terminalCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> - terminalConditionBuilder_; + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> terminalConditionBuilder_; /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6133,18 +5489,13 @@ public Builder clearObservedGeneration() {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalCondition field is set. */ public boolean hasTerminalCondition() { return terminalConditionBuilder_ != null || terminalCondition_ != null; } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6152,24 +5503,17 @@ public boolean hasTerminalCondition() {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalCondition. */ public com.google.cloud.run.v2.Condition getTerminalCondition() { if (terminalConditionBuilder_ == null) { - return terminalCondition_ == null - ? com.google.cloud.run.v2.Condition.getDefaultInstance() - : terminalCondition_; + return terminalCondition_ == null ? com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; } else { return terminalConditionBuilder_.getMessage(); } } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6177,9 +5521,7 @@ public com.google.cloud.run.v2.Condition getTerminalCondition() {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { @@ -6195,8 +5537,6 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6204,11 +5544,10 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder setTerminalCondition( + com.google.cloud.run.v2.Condition.Builder builderForValue) { if (terminalConditionBuilder_ == null) { terminalCondition_ = builderForValue.build(); onChanged(); @@ -6219,8 +5558,6 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder bu return this; } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6228,17 +5565,13 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder bu
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { if (terminalCondition_ != null) { terminalCondition_ = - com.google.cloud.run.v2.Condition.newBuilder(terminalCondition_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.run.v2.Condition.newBuilder(terminalCondition_).mergeFrom(value).buildPartial(); } else { terminalCondition_ = value; } @@ -6250,8 +5583,6 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6259,9 +5590,7 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTerminalCondition() { if (terminalConditionBuilder_ == null) { @@ -6275,8 +5604,6 @@ public Builder clearTerminalCondition() { return this; } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6284,18 +5611,14 @@ public Builder clearTerminalCondition() {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.Condition.Builder getTerminalConditionBuilder() { - + onChanged(); return getTerminalConditionFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6303,22 +5626,17 @@ public com.google.cloud.run.v2.Condition.Builder getTerminalConditionBuilder() {
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { if (terminalConditionBuilder_ != null) { return terminalConditionBuilder_.getMessageOrBuilder(); } else { - return terminalCondition_ == null - ? com.google.cloud.run.v2.Condition.getDefaultInstance() - : terminalCondition_; + return terminalCondition_ == null ? + com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; } } /** - * - * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -6326,46 +5644,35 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(
      * process in Cloud Run.
      * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> getTerminalConditionFieldBuilder() { if (terminalConditionBuilder_ == null) { - terminalConditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder>( - getTerminalCondition(), getParentForChildren(), isClean()); + terminalConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( + getTerminalCondition(), + getParentForChildren(), + isClean()); terminalCondition_ = null; } return terminalConditionBuilder_; } private java.util.List conditions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> - conditionsBuilder_; + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6373,9 +5680,7 @@ private void ensureConditionsIsMutable() {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -6385,8 +5690,6 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6394,9 +5697,7 @@ public java.util.List getConditionsList() {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -6406,8 +5707,6 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6415,9 +5714,7 @@ public int getConditionsCount() {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -6427,8 +5724,6 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6436,11 +5731,10 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) { + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6454,8 +5748,6 @@ public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6463,9 +5755,7 @@ public Builder setConditions(int index, com.google.cloud.run.v2.Condition value)
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -6479,8 +5769,6 @@ public Builder setConditions( return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6488,9 +5776,7 @@ public Builder setConditions(
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -6506,8 +5792,6 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6515,11 +5799,10 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) { + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6533,8 +5816,6 @@ public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6542,11 +5823,10 @@ public Builder addConditions(int index, com.google.cloud.run.v2.Condition value)
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder addConditions( + com.google.cloud.run.v2.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -6557,8 +5837,6 @@ public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderFo return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6566,9 +5844,7 @@ public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderFo
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -6582,8 +5858,6 @@ public Builder addConditions( return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6591,15 +5865,14 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -6607,8 +5880,6 @@ public Builder addAllConditions( return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6616,9 +5887,7 @@ public Builder addAllConditions(
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -6631,8 +5900,6 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6640,9 +5907,7 @@ public Builder clearConditions() {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -6655,8 +5920,6 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6664,16 +5927,13 @@ public Builder removeConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index) { + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6681,20 +5941,16 @@ public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index)
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6702,12 +5958,10 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -6715,8 +5969,6 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind } } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6724,17 +5976,13 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Condition.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6742,17 +5990,14 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() {
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Condition.getDefaultInstance()); + public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** - * - * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6760,26 +6005,22 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index)
      * reconciliation process in Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, - com.google.cloud.run.v2.Condition.Builder, - com.google.cloud.run.v2.ConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; @@ -6787,24 +6028,20 @@ public java.util.List getConditionsBu private java.lang.Object latestReadyRevision_ = ""; /** - * - * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestReadyRevision. */ public java.lang.String getLatestReadyRevision() { java.lang.Object ref = latestReadyRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestReadyRevision_ = s; return s; @@ -6813,25 +6050,22 @@ public java.lang.String getLatestReadyRevision() { } } /** - * - * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestReadyRevision. */ - public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { + public com.google.protobuf.ByteString + getLatestReadyRevisionBytes() { java.lang.Object ref = latestReadyRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); latestReadyRevision_ = b; return b; } else { @@ -6839,73 +6073,60 @@ public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { } } /** - * - * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The latestReadyRevision to set. * @return This builder for chaining. */ - public Builder setLatestReadyRevision(java.lang.String value) { + public Builder setLatestReadyRevision( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + latestReadyRevision_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLatestReadyRevision() { - + latestReadyRevision_ = getDefaultInstance().getLatestReadyRevision(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for latestReadyRevision to set. * @return This builder for chaining. */ - public Builder setLatestReadyRevisionBytes(com.google.protobuf.ByteString value) { + public Builder setLatestReadyRevisionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestReadyRevision_ = value; onChanged(); return this; @@ -6913,23 +6134,19 @@ public Builder setLatestReadyRevisionBytes(com.google.protobuf.ByteString value) private java.lang.Object latestCreatedRevision_ = ""; /** - * - * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestCreatedRevision. */ public java.lang.String getLatestCreatedRevision() { java.lang.Object ref = latestCreatedRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestCreatedRevision_ = s; return s; @@ -6938,24 +6155,21 @@ public java.lang.String getLatestCreatedRevision() { } } /** - * - * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestCreatedRevision. */ - public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { + public com.google.protobuf.ByteString + getLatestCreatedRevisionBytes() { java.lang.Object ref = latestCreatedRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); latestCreatedRevision_ = b; return b; } else { @@ -6963,104 +6177,82 @@ public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { } } /** - * - * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The latestCreatedRevision to set. * @return This builder for chaining. */ - public Builder setLatestCreatedRevision(java.lang.String value) { + public Builder setLatestCreatedRevision( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + latestCreatedRevision_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLatestCreatedRevision() { - + latestCreatedRevision_ = getDefaultInstance().getLatestCreatedRevision(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for latestCreatedRevision to set. * @return This builder for chaining. */ - public Builder setLatestCreatedRevisionBytes(com.google.protobuf.ByteString value) { + public Builder setLatestCreatedRevisionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestCreatedRevision_ = value; onChanged(); return this; } private java.util.List trafficStatuses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTrafficStatusesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - trafficStatuses_ = - new java.util.ArrayList(trafficStatuses_); + trafficStatuses_ = new java.util.ArrayList(trafficStatuses_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, - com.google.cloud.run.v2.TrafficTargetStatus.Builder, - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> - trafficStatusesBuilder_; + com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> trafficStatusesBuilder_; /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getTrafficStatusesList() { if (trafficStatusesBuilder_ == null) { @@ -7070,17 +6262,13 @@ public java.util.List getTrafficSta } } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTrafficStatusesCount() { if (trafficStatusesBuilder_ == null) { @@ -7090,17 +6278,13 @@ public int getTrafficStatusesCount() { } } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) { if (trafficStatusesBuilder_ == null) { @@ -7110,17 +6294,13 @@ public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) } } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus value) { @@ -7137,17 +6317,13 @@ public Builder setTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -7161,17 +6337,13 @@ public Builder setTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTrafficStatuses(com.google.cloud.run.v2.TrafficTargetStatus value) { if (trafficStatusesBuilder_ == null) { @@ -7187,17 +6359,13 @@ public Builder addTrafficStatuses(com.google.cloud.run.v2.TrafficTargetStatus va return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus value) { @@ -7214,17 +6382,13 @@ public Builder addTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTrafficStatuses( com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -7238,17 +6402,13 @@ public Builder addTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -7262,23 +6422,20 @@ public Builder addTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTrafficStatuses( java.lang.Iterable values) { if (trafficStatusesBuilder_ == null) { ensureTrafficStatusesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trafficStatuses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trafficStatuses_); onChanged(); } else { trafficStatusesBuilder_.addAllMessages(values); @@ -7286,17 +6443,13 @@ public Builder addAllTrafficStatuses( return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTrafficStatuses() { if (trafficStatusesBuilder_ == null) { @@ -7309,17 +6462,13 @@ public Builder clearTrafficStatuses() { return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTrafficStatuses(int index) { if (trafficStatusesBuilder_ == null) { @@ -7332,58 +6481,45 @@ public Builder removeTrafficStatuses(int index) { return this; } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder getTrafficStatusesBuilder( int index) { return getTrafficStatusesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( int index) { if (trafficStatusesBuilder_ == null) { - return trafficStatuses_.get(index); - } else { + return trafficStatuses_.get(index); } else { return trafficStatusesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTrafficStatusesOrBuilderList() { + public java.util.List + getTrafficStatusesOrBuilderList() { if (trafficStatusesBuilder_ != null) { return trafficStatusesBuilder_.getMessageOrBuilderList(); } else { @@ -7391,69 +6527,51 @@ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOr } } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBuilder() { - return getTrafficStatusesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); + return getTrafficStatusesFieldBuilder().addBuilder( + com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBuilder( int index) { - return getTrafficStatusesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); + return getTrafficStatusesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); } /** - * - * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTrafficStatusesBuilderList() { + public java.util.List + getTrafficStatusesBuilderList() { return getTrafficStatusesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, - com.google.cloud.run.v2.TrafficTargetStatus.Builder, - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> + com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> getTrafficStatusesFieldBuilder() { if (trafficStatusesBuilder_ == null) { - trafficStatusesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, - com.google.cloud.run.v2.TrafficTargetStatus.Builder, - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder>( + trafficStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder>( trafficStatuses_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7465,20 +6583,18 @@ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBui private java.lang.Object uri_ = ""; /** - * - * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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; @@ -7487,21 +6603,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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 { @@ -7509,70 +6624,61 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -7596,7 +6702,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -7604,8 +6709,6 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -7629,19 +6732,16 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -7665,11 +6765,10 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { - + reconciling_ = false; onChanged(); return this; @@ -7677,21 +6776,19 @@ public Builder clearReconciling() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -7700,22 +6797,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -7723,71 +6819,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -7797,12 +6886,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Service) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Service) private static final com.google.cloud.run.v2.Service DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Service(); } @@ -7811,16 +6900,16 @@ public static com.google.cloud.run.v2.Service getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Service(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Service(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7835,4 +6924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java similarity index 100% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java similarity index 80% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index d8cc384..df89e68 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.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/run/v2/service.proto package com.google.cloud.run.v2; -public interface ServiceOrBuilder - extends +public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Service) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -35,13 +17,10 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -51,68 +30,56 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -121,14 +88,11 @@ public interface ServiceOrBuilder
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -146,8 +110,6 @@ public interface ServiceOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -163,13 +125,15 @@ public interface ServiceOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  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();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -185,10 +149,9 @@ public interface ServiceOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -206,13 +169,11 @@ public interface ServiceOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -228,11 +189,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -246,8 +207,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -259,13 +218,15 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -277,10 +238,9 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -294,13 +254,11 @@ java.lang.String getLabelsOrDefault(
    */
 
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -312,266 +270,202 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ java.lang.String getCreator(); /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - com.google.protobuf.ByteString getCreatorBytes(); + com.google.protobuf.ByteString + getCreatorBytes(); /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifier. */ java.lang.String getLastModifier(); /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastModifier. */ - com.google.protobuf.ByteString getLastModifierBytes(); + com.google.protobuf.ByteString + getLastModifierBytes(); /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The client. */ java.lang.String getClient(); /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The bytes for client. */ - com.google.protobuf.ByteString getClientBytes(); + com.google.protobuf.ByteString + getClientBytes(); /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The clientVersion. */ java.lang.String getClientVersion(); /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The bytes for clientVersion. */ - com.google.protobuf.ByteString getClientVersionBytes(); + com.google.protobuf.ByteString + getClientVersionBytes(); /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -579,13 +473,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The enum numeric value on the wire for ingress. */ int getIngressValue(); /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -593,14 +484,11 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The ingress. */ com.google.cloud.run.v2.IngressTraffic getIngress(); /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -609,13 +497,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -624,38 +509,29 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return Whether the binaryAuthorization field is set. */ boolean hasBinaryAuthorization(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return The binaryAuthorization. */ com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
@@ -665,49 +541,33 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ boolean hasTemplate(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ com.google.cloud.run.v2.RevisionTemplate getTemplate(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder(); /** - * - * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -716,10 +576,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List getTrafficList();
+  java.util.List 
+      getTrafficList();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -730,8 +589,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.TrafficTarget getTraffic(int index);
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -742,8 +599,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getTrafficCount();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -752,11 +607,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List
+  java.util.List 
       getTrafficOrBuilderList();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -765,11 +618,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index);
+  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -779,14 +631,11 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ long getObservedGeneration(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -794,16 +643,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalCondition field is set. */ boolean hasTerminalCondition(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -811,16 +655,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalCondition. */ com.google.cloud.run.v2.Condition getTerminalCondition(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -828,15 +667,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -844,14 +679,11 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -859,14 +691,10 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.Condition getConditions(int index); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -874,14 +702,10 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -889,14 +713,11 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -904,176 +725,132 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestReadyRevision. */ java.lang.String getLatestReadyRevision(); /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestReadyRevision. */ - com.google.protobuf.ByteString getLatestReadyRevisionBytes(); + com.google.protobuf.ByteString + getLatestReadyRevisionBytes(); /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestCreatedRevision. */ java.lang.String getLatestCreatedRevision(); /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestCreatedRevision. */ - com.google.protobuf.ByteString getLatestCreatedRevisionBytes(); + com.google.protobuf.ByteString + getLatestCreatedRevisionBytes(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getTrafficStatusesList(); + java.util.List + getTrafficStatusesList(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTrafficStatusesCount(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTrafficStatusesOrBuilderList(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder(int index); + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( + int index); /** - * - * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -1097,35 +874,29 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java new file mode 100644 index 0000000..6a79008 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,287 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/service.proto + +package com.google.cloud.run.v2; + +public final class ServiceProto { + private ServiceProto() {} + 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_run_v2_CreateServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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/run/v2/service.proto\022\023goo" + + "gle.cloud.run.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\035google/api/lau" + + "nch_stage.proto\032\031google/api/resource.pro" + + "to\032\030google/api/routing.proto\032#google/clo" + + "ud/run/v2/condition.proto\032+google/cloud/" + + "run/v2/revision_template.proto\032(google/c" + + "loud/run/v2/traffic_target.proto\032)google" + + "/cloud/run/v2/vendor_settings.proto\032\036goo" + + "gle/iam/v1/iam_policy.proto\032\032google/iam/" + + "v1/policy.proto\032#google/longrunning/oper" + + "ations.proto\032\037google/protobuf/timestamp." + + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + + ".google.api.LaunchStage\022F\n\024binary_author" + + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + + ".googleapis.com/Revision\022G\n\020traffic_stat" + + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}R\001\0012\267\r\n\010" + + "Services\022\375\001\n\rCreateService\022).google.clou" + + "d.run.v2.CreateServiceRequest\032\035.google.l" + + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + + "nt=projects/*/locations/*}/services:\007ser" + + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + + "ns/{location=*}\332A\031parent,service,service" + + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + + "&.google.cloud.run.v2.GetServiceRequest\032" + + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + + "v2/{name=projects/*/locations/*/services" + + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + + "(.google.cloud.run.v2.ListServicesReques" + + "t\032).google.cloud.run.v2.ListServicesResp" + + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + + "ects/*/locations/{location=*}\332A\006parent\022\374" + + "\001\n\rUpdateService\022).google.cloud.run.v2.U" + + "pdateServiceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + + "rojects/*/locations/*/services/*}:\007servi" + + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + + "{name=projects/*/locations/*/services/*}" + + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + + "\344\223\002?\022=/v2/{resource=projects/*/locations" + + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + + "source=projects/*/locations/*/services/*" + + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + + "locations/*/services/*}:testIamPermissio" + + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBa\n" + + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\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.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, + new java.lang.String[] { "Parent", "Service", "ServiceId", "ValidateOnly", }); + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, + new java.lang.String[] { "Service", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, + new java.lang.String[] { "Services", "NextPageToken", }); + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Service_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_Service_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_descriptor, + new java.lang.String[] { "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "Reconciling", "Etag", }); + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + 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.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + 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.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java similarity index 71% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java index 2f05786..73e9a3f 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** - * - * *
  * Holds a single traffic routing entry for the Service. Allocations can be done
  * to a specific Revision name, or pointing to the latest Ready Revision.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.TrafficTarget}
  */
-public final class TrafficTarget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TrafficTarget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TrafficTarget)
     TrafficTargetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TrafficTarget.newBuilder() to construct.
   private TrafficTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TrafficTarget() {
     type_ = 0;
     revision_ = "";
@@ -46,15 +28,16 @@ private TrafficTarget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TrafficTarget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TrafficTarget(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,39 +56,36 @@ private TrafficTarget(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            type_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              revision_ = s;
-              break;
-            }
-          case 24:
-            {
-              percent_ = input.readInt32();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            revision_ = s;
+            break;
+          }
+          case 24: {
 
-              tag_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            percent_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            tag_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,78 +93,62 @@ private TrafficTarget(
     } 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.run.v2.TrafficTargetProto
-        .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.TrafficTargetProto
-        .internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
+    return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.TrafficTarget.class,
-            com.google.cloud.run.v2.TrafficTarget.Builder.class);
+            com.google.cloud.run.v2.TrafficTarget.class, com.google.cloud.run.v2.TrafficTarget.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
-   *
-   *
    * 
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { + @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = - com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null - ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED - : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; } public static final int REVISION_FIELD_NUMBER = 2; private volatile java.lang.Object revision_; /** - * - * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ @java.lang.Override @@ -193,30 +157,30 @@ 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; } } /** - * - * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -227,15 +191,12 @@ public com.google.protobuf.ByteString getRevisionBytes() { public static final int PERCENT_FIELD_NUMBER = 3; private int percent_; /** - * - * *
    * Specifies percent of the traffic to this Revision.
    * This defaults to zero if unspecified.
    * 
* * int32 percent = 3; - * * @return The percent. */ @java.lang.Override @@ -246,15 +207,12 @@ public int getPercent() { public static final int TAG_FIELD_NUMBER = 4; private volatile java.lang.Object tag_; /** - * - * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; - * * @return The tag. */ @java.lang.Override @@ -263,30 +221,30 @@ public java.lang.String getTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** - * - * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; - * * @return The bytes for tag. */ @java.lang.Override - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -295,7 +253,6 @@ public com.google.protobuf.ByteString getTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,11 +264,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.run.v2.TrafficTargetAllocationType - .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { @@ -332,17 +287,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.run.v2.TrafficTargetAllocationType - .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_); } if (percent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, percent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, percent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tag_); @@ -355,7 +309,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.run.v2.TrafficTarget)) { return super.equals(obj); @@ -363,9 +317,12 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.run.v2.TrafficTarget other = (com.google.cloud.run.v2.TrafficTarget) obj; if (type_ != other.type_) return false; - if (!getRevision().equals(other.getRevision())) return false; - if (getPercent() != other.getPercent()) return false; - if (!getTag().equals(other.getTag())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; + if (getPercent() + != other.getPercent()) return false; + if (!getTag() + .equals(other.getTag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -390,103 +347,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TrafficTarget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TrafficTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.TrafficTarget parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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; } /** - * - * *
    * Holds a single traffic routing entry for the Service. Allocations can be done
    * to a specific Revision name, or pointing to the latest Ready Revision.
@@ -494,23 +445,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.TrafficTarget}
    */
-  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.run.v2.TrafficTarget)
       com.google.cloud.run.v2.TrafficTargetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.TrafficTargetProto
-          .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.TrafficTargetProto
-          .internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
+      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.TrafficTarget.class,
-              com.google.cloud.run.v2.TrafficTarget.Builder.class);
+              com.google.cloud.run.v2.TrafficTarget.class, com.google.cloud.run.v2.TrafficTarget.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.TrafficTarget.newBuilder()
@@ -518,15 +467,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();
@@ -542,9 +492,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.TrafficTargetProto
-          .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
     }
 
     @java.lang.Override
@@ -563,8 +513,7 @@ public com.google.cloud.run.v2.TrafficTarget build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.TrafficTarget buildPartial() {
-      com.google.cloud.run.v2.TrafficTarget result =
-          new com.google.cloud.run.v2.TrafficTarget(this);
+      com.google.cloud.run.v2.TrafficTarget result = new com.google.cloud.run.v2.TrafficTarget(this);
       result.type_ = type_;
       result.revision_ = revision_;
       result.percent_ = percent_;
@@ -577,39 +526,38 @@ public com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget) {
-        return mergeFrom((com.google.cloud.run.v2.TrafficTarget) other);
+        return mergeFrom((com.google.cloud.run.v2.TrafficTarget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -663,67 +611,51 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @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; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = - com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null - ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED - : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -731,24 +663,21 @@ public Builder setType(com.google.cloud.run.v2.TrafficTargetAllocationType value if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -756,21 +685,19 @@ public Builder clearType() { private java.lang.Object revision_ = ""; /** - * - * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; @@ -779,22 +706,21 @@ public java.lang.String getRevision() { } } /** - * - * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -802,80 +728,70 @@ public com.google.protobuf.ByteString getRevisionBytes() { } } /** - * - * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** - * - * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; } - private int percent_; + private int percent_ ; /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; - * * @return The percent. */ @java.lang.Override @@ -883,38 +799,32 @@ public int getPercent() { return percent_; } /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; - * * @param value The percent to set. * @return This builder for chaining. */ public Builder setPercent(int value) { - + percent_ = value; onChanged(); return this; } /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; - * * @return This builder for chaining. */ public Builder clearPercent() { - + percent_ = 0; onChanged(); return this; @@ -922,21 +832,19 @@ public Builder clearPercent() { private java.lang.Object tag_ = ""; /** - * - * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; - * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; @@ -945,22 +853,21 @@ public java.lang.String getTag() { } } /** - * - * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; - * * @return The bytes for tag. */ - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -968,71 +875,64 @@ public com.google.protobuf.ByteString getTagBytes() { } } /** - * - * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; - * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag(java.lang.String value) { + public Builder setTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** - * - * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; - * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** - * - * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; - * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes(com.google.protobuf.ByteString value) { + public Builder setTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = 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); } @@ -1042,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TrafficTarget) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TrafficTarget) private static final com.google.cloud.run.v2.TrafficTarget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TrafficTarget(); } @@ -1056,16 +956,16 @@ public static com.google.cloud.run.v2.TrafficTarget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrafficTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrafficTarget(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrafficTarget(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1080,4 +980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java similarity index 70% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java index 06c84b6..fad73ec 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** - * - * *
  * The type of instance allocation.
  * 
* * Protobuf enum {@code google.cloud.run.v2.TrafficTargetAllocationType} */ -public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolMessageEnum { +public enum TrafficTargetAllocationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified instance allocation type.
    * 
@@ -39,8 +21,6 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM */ TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * Allocates instances to the Service's latest ready Revision.
    * 
@@ -49,8 +29,6 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM */ TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST(1), /** - * - * *
    * Allocates instances to a Revision by name.
    * 
@@ -62,8 +40,6 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM ; /** - * - * *
    * Unspecified instance allocation type.
    * 
@@ -72,8 +48,6 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Allocates instances to the Service's latest ready Revision.
    * 
@@ -82,8 +56,6 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST_VALUE = 1; /** - * - * *
    * Allocates instances to a Revision by name.
    * 
@@ -92,6 +64,7 @@ public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolM */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,14 +89,10 @@ public static TrafficTargetAllocationType valueOf(int value) { */ public static TrafficTargetAllocationType forNumber(int value) { switch (value) { - case 0: - return TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED; - case 1: - return TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST; - case 2: - return TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION; - default: - return null; + case 0: return TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED; + case 1: return TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST; + case 2: return TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION; + default: return null; } } @@ -131,28 +100,28 @@ public static TrafficTargetAllocationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrafficTargetAllocationType findValueByNumber(int number) { - return TrafficTargetAllocationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + TrafficTargetAllocationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrafficTargetAllocationType findValueByNumber(int number) { + return TrafficTargetAllocationType.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.run.v2.TrafficTargetProto.getDescriptor().getEnumTypes().get(0); } @@ -161,7 +130,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static TrafficTargetAllocationType 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; @@ -177,3 +147,4 @@ private TrafficTargetAllocationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.TrafficTargetAllocationType) } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java index ce98b2e..2cb2b01 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java @@ -1,118 +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/run/v2/traffic_target.proto package com.google.cloud.run.v2; -public interface TrafficTargetOrBuilder - extends +public interface TrafficTargetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TrafficTarget) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ com.google.cloud.run.v2.TrafficTargetAllocationType getType(); /** - * - * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); /** - * - * *
    * Specifies percent of the traffic to this Revision.
    * This defaults to zero if unspecified.
    * 
* * int32 percent = 3; - * * @return The percent. */ int getPercent(); /** - * - * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; - * * @return The tag. */ java.lang.String getTag(); /** - * - * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; - * * @return The bytes for tag. */ - com.google.protobuf.ByteString getTagBytes(); + com.google.protobuf.ByteString + getTagBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java new file mode 100644 index 0000000..41e7bb8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/traffic_target.proto + +package com.google.cloud.run.v2; + +public final class TrafficTargetProto { + private TrafficTargetProto() {} + 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_run_v2_TrafficTarget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TrafficTargetStatus_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/run/v2/traffic_target.pro" + + "to\022\023google.cloud.run.v2\032\031google/api/reso" + + "urce.proto\"\241\001\n\rTrafficTarget\022>\n\004type\030\001 \001" + + "(\01620.google.cloud.run.v2.TrafficTargetAl" + + "locationType\0222\n\010revision\030\002 \001(\tB \372A\035\n\033run" + + ".googleapis.com/Revision\022\017\n\007percent\030\003 \001(" + + "\005\022\013\n\003tag\030\004 \001(\t\"\264\001\n\023TrafficTargetStatus\022>" + + "\n\004type\030\001 \001(\01620.google.cloud.run.v2.Traff" + + "icTargetAllocationType\0222\n\010revision\030\002 \001(\t" + + "B \372A\035\n\033run.googleapis.com/Revision\022\017\n\007pe" + + "rcent\030\003 \001(\005\022\013\n\003tag\030\004 \001(\t\022\013\n\003uri\030\005 \001(\t*\245\001" + + "\n\033TrafficTargetAllocationType\022.\n*TRAFFIC" + + "_TARGET_ALLOCATION_TYPE_UNSPECIFIED\020\000\022)\n" + + "%TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\020\001" + + "\022+\n\'TRAFFIC_TARGET_ALLOCATION_TYPE_REVIS" + + "ION\020\002Bg\n\027com.google.cloud.run.v2B\022Traffi" + + "cTargetProtoP\001Z6google.golang.org/genpro" + + "to/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_TrafficTarget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TrafficTarget_descriptor, + new java.lang.String[] { "Type", "Revision", "Percent", "Tag", }); + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor, + new java.lang.String[] { "Type", "Revision", "Percent", "Tag", "Uri", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java similarity index 71% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java index d72bc83..20dddcb 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** - * - * *
  * Represents the observed state of a single `TrafficTarget` entry.
  * 
* * Protobuf type {@code google.cloud.run.v2.TrafficTargetStatus} */ -public final class TrafficTargetStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TrafficTargetStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TrafficTargetStatus) TrafficTargetStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TrafficTargetStatus.newBuilder() to construct. private TrafficTargetStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TrafficTargetStatus() { type_ = 0; revision_ = ""; @@ -46,15 +28,16 @@ private TrafficTargetStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TrafficTargetStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TrafficTargetStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private TrafficTargetStatus( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - revision_ = s; - break; - } - case 24: - { - percent_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + revision_ = s; + break; + } + case 24: { - tag_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + percent_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + tag_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,77 +99,61 @@ private TrafficTargetStatus( } 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.run.v2.TrafficTargetProto - .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TrafficTargetProto - .internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable + return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TrafficTargetStatus.class, - com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); + com.google.cloud.run.v2.TrafficTargetStatus.class, com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { + @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = - com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null - ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED - : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; } public static final int REVISION_FIELD_NUMBER = 2; private volatile java.lang.Object revision_; /** - * - * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ @java.lang.Override @@ -199,29 +162,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; } } /** - * - * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -232,14 +195,11 @@ public com.google.protobuf.ByteString getRevisionBytes() { public static final int PERCENT_FIELD_NUMBER = 3; private int percent_; /** - * - * *
    * Specifies percent of the traffic to this Revision.
    * 
* * int32 percent = 3; - * * @return The percent. */ @java.lang.Override @@ -250,14 +210,11 @@ public int getPercent() { public static final int TAG_FIELD_NUMBER = 4; private volatile java.lang.Object tag_; /** - * - * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; - * * @return The tag. */ @java.lang.Override @@ -266,29 +223,29 @@ public java.lang.String getTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** - * - * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; - * * @return The bytes for tag. */ @java.lang.Override - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -299,14 +256,11 @@ public com.google.protobuf.ByteString getTagBytes() { public static final int URI_FIELD_NUMBER = 5; private volatile java.lang.Object uri_; /** - * - * *
    * Displays the target URI.
    * 
* * string uri = 5; - * * @return The uri. */ @java.lang.Override @@ -315,29 +269,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; } } /** - * - * *
    * Displays the target URI.
    * 
* * string uri = 5; - * * @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 { @@ -346,7 +300,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,11 +311,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.run.v2.TrafficTargetAllocationType - .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { @@ -386,17 +337,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.run.v2.TrafficTargetAllocationType - .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_); } if (percent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, percent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, percent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tag_); @@ -412,19 +362,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.run.v2.TrafficTargetStatus)) { return super.equals(obj); } - com.google.cloud.run.v2.TrafficTargetStatus other = - (com.google.cloud.run.v2.TrafficTargetStatus) obj; + com.google.cloud.run.v2.TrafficTargetStatus other = (com.google.cloud.run.v2.TrafficTargetStatus) obj; if (type_ != other.type_) return false; - if (!getRevision().equals(other.getRevision())) return false; - if (getPercent() != other.getPercent()) return false; - if (!getTag().equals(other.getTag())) return false; - if (!getUri().equals(other.getUri())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; + if (getPercent() + != other.getPercent()) return false; + if (!getTag() + .equals(other.getTag())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,127 +404,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TrafficTargetStatus parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TrafficTargetStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.TrafficTargetStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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 observed state of a single `TrafficTarget` entry.
    * 
* * Protobuf type {@code google.cloud.run.v2.TrafficTargetStatus} */ - 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.run.v2.TrafficTargetStatus) com.google.cloud.run.v2.TrafficTargetStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.TrafficTargetProto - .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TrafficTargetProto - .internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable + return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TrafficTargetStatus.class, - com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); + com.google.cloud.run.v2.TrafficTargetStatus.class, com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); } // Construct using com.google.cloud.run.v2.TrafficTargetStatus.newBuilder() @@ -579,15 +523,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(); @@ -605,9 +550,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.TrafficTargetProto - .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override @@ -626,8 +571,7 @@ public com.google.cloud.run.v2.TrafficTargetStatus build() { @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatus buildPartial() { - com.google.cloud.run.v2.TrafficTargetStatus result = - new com.google.cloud.run.v2.TrafficTargetStatus(this); + com.google.cloud.run.v2.TrafficTargetStatus result = new com.google.cloud.run.v2.TrafficTargetStatus(this); result.type_ = type_; result.revision_ = revision_; result.percent_ = percent_; @@ -641,39 +585,38 @@ public com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus) { - return mergeFrom((com.google.cloud.run.v2.TrafficTargetStatus) other); + return mergeFrom((com.google.cloud.run.v2.TrafficTargetStatus)other); } else { super.mergeFrom(other); return this; @@ -731,67 +674,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @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; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = - com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null - ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED - : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -799,24 +726,21 @@ public Builder setType(com.google.cloud.run.v2.TrafficTargetAllocationType value if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -824,20 +748,18 @@ public Builder clearType() { private java.lang.Object revision_ = ""; /** - * - * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; @@ -846,21 +768,20 @@ public java.lang.String getRevision() { } } /** - * - * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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 { @@ -868,76 +789,66 @@ public com.google.protobuf.ByteString getRevisionBytes() { } } /** - * - * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** - * - * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @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; } - private int percent_; + private int percent_ ; /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; - * * @return The percent. */ @java.lang.Override @@ -945,36 +856,30 @@ public int getPercent() { return percent_; } /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; - * * @param value The percent to set. * @return This builder for chaining. */ public Builder setPercent(int value) { - + percent_ = value; onChanged(); return this; } /** - * - * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; - * * @return This builder for chaining. */ public Builder clearPercent() { - + percent_ = 0; onChanged(); return this; @@ -982,20 +887,18 @@ public Builder clearPercent() { private java.lang.Object tag_ = ""; /** - * - * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; - * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; @@ -1004,21 +907,20 @@ public java.lang.String getTag() { } } /** - * - * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; - * * @return The bytes for tag. */ - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -1026,61 +928,54 @@ public com.google.protobuf.ByteString getTagBytes() { } } /** - * - * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; - * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag(java.lang.String value) { + public Builder setTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; - * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** - * - * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; - * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes(com.google.protobuf.ByteString value) { + public Builder setTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = value; onChanged(); return this; @@ -1088,20 +983,18 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Displays the target URI.
      * 
* * string uri = 5; - * * @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; @@ -1110,21 +1003,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Displays the target URI.
      * 
* * string uri = 5; - * * @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 { @@ -1132,68 +1024,61 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Displays the target URI.
      * 
* * string uri = 5; - * * @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; } /** - * - * *
      * Displays the target URI.
      * 
* * string uri = 5; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Displays the target URI.
      * 
* * string uri = 5; - * * @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; } - @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); } @@ -1203,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TrafficTargetStatus) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TrafficTargetStatus) private static final com.google.cloud.run.v2.TrafficTargetStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TrafficTargetStatus(); } @@ -1217,16 +1102,16 @@ public static com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrafficTargetStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrafficTargetStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficTargetStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrafficTargetStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1241,4 +1126,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java similarity index 68% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java index ab98690..125182f 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java @@ -1,138 +1,98 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/traffic_target.proto package com.google.cloud.run.v2; -public interface TrafficTargetStatusOrBuilder - extends +public interface TrafficTargetStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TrafficTargetStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; - * * @return The type. */ com.google.cloud.run.v2.TrafficTargetAllocationType getType(); /** - * - * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); /** - * - * *
    * Specifies percent of the traffic to this Revision.
    * 
* * int32 percent = 3; - * * @return The percent. */ int getPercent(); /** - * - * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; - * * @return The tag. */ java.lang.String getTag(); /** - * - * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; - * * @return The bytes for tag. */ - com.google.protobuf.ByteString getTagBytes(); + com.google.protobuf.ByteString + getTagBytes(); /** - * - * *
    * Displays the target URI.
    * 
* * string uri = 5; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Displays the target URI.
    * 
* * string uri = 5; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java similarity index 71% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index 033b881..6527a99 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** - * - * *
  * Request message for updating a service.
  * 
* * Protobuf type {@code google.cloud.run.v2.UpdateServiceRequest} */ -public final class UpdateServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.UpdateServiceRequest) UpdateServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateServiceRequest.newBuilder() to construct. private UpdateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateServiceRequest() {} + private UpdateServiceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,38 +52,36 @@ private UpdateServiceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.run.v2.Service.Builder subBuilder = null; - if (service_ != null) { - subBuilder = service_.toBuilder(); - } - service_ = - input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(service_); - service_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - validateOnly_ = input.readBool(); - break; + case 10: { + com.google.cloud.run.v2.Service.Builder subBuilder = null; + if (service_ != null) { + subBuilder = service_.toBuilder(); } - case 32: - { - allowMissing_ = input.readBool(); - break; + service_ = input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(service_); + service_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 24: { + + validateOnly_ = input.readBool(); + break; + } + case 32: { + + allowMissing_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,40 +89,34 @@ private UpdateServiceRequest( } 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.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateServiceRequest.class, - com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); + com.google.cloud.run.v2.UpdateServiceRequest.class, com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.cloud.run.v2.Service service_; /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ @java.lang.Override @@ -148,15 +124,11 @@ public boolean hasService() { return service_ != null; } /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ @java.lang.Override @@ -164,14 +136,11 @@ public com.google.cloud.run.v2.Service getService() { return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { @@ -181,15 +150,12 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_; /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -200,8 +166,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_; /** - * - * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -209,7 +173,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -218,7 +181,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +192,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 (service_ != null) { output.writeMessage(1, getService()); } @@ -250,13 +213,16 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getService()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,20 +232,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.run.v2.UpdateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.UpdateServiceRequest other = - (com.google.cloud.run.v2.UpdateServiceRequest) obj; + com.google.cloud.run.v2.UpdateServiceRequest other = (com.google.cloud.run.v2.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,135 +264,128 @@ public int hashCode() { hash = (53 * hash) + getService().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.UpdateServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.UpdateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.UpdateServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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 message for updating a service.
    * 
* * Protobuf type {@code google.cloud.run.v2.UpdateServiceRequest} */ - 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.run.v2.UpdateServiceRequest) com.google.cloud.run.v2.UpdateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateServiceRequest.class, - com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); + com.google.cloud.run.v2.UpdateServiceRequest.class, com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.UpdateServiceRequest.newBuilder() @@ -432,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(); @@ -458,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto - .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override @@ -479,8 +441,7 @@ public com.google.cloud.run.v2.UpdateServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.UpdateServiceRequest buildPartial() { - com.google.cloud.run.v2.UpdateServiceRequest result = - new com.google.cloud.run.v2.UpdateServiceRequest(this); + com.google.cloud.run.v2.UpdateServiceRequest result = new com.google.cloud.run.v2.UpdateServiceRequest(this); if (serviceBuilder_ == null) { result.service_ = service_; } else { @@ -496,39 +457,38 @@ public com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.UpdateServiceRequest) other); + return mergeFrom((com.google.cloud.run.v2.UpdateServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -577,35 +537,24 @@ public Builder mergeFrom( private com.google.cloud.run.v2.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> - serviceBuilder_; + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> serviceBuilder_; /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ public com.google.cloud.run.v2.Service getService() { @@ -616,14 +565,11 @@ public com.google.cloud.run.v2.Service getService() { } } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { @@ -639,16 +585,14 @@ public Builder setService(com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setService( + com.google.cloud.run.v2.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); @@ -659,20 +603,17 @@ public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValu return this; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = - com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } @@ -684,14 +625,11 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { return this; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearService() { if (serviceBuilder_ == null) { @@ -705,75 +643,61 @@ public Builder clearService() { return this; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? + com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), + getParentForChildren(), + isClean()); service_ = null; } return serviceBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -781,47 +705,39 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -829,7 +745,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -837,8 +752,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -846,19 +759,16 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -866,18 +776,17 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { - + allowMissing_ = 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); } @@ -887,12 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.UpdateServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.UpdateServiceRequest) private static final com.google.cloud.run.v2.UpdateServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.UpdateServiceRequest(); } @@ -901,16 +810,16 @@ public static com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,4 +834,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index 6009b7f..103efd8 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -1,83 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface UpdateServiceRequestOrBuilder - extends +public interface UpdateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ boolean hasService(); /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ com.google.cloud.run.v2.Service getService(); /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -85,7 +53,6 @@ public interface UpdateServiceRequestOrBuilder
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java new file mode 100644 index 0000000..53c79f9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/vendor_settings.proto + +package com.google.cloud.run.v2; + +public final class VendorSettingsProto { + private VendorSettingsProto() {} + 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_run_v2_VpcAccess_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionScaling_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/run/v2/vendor_settings.pr" + + "oto\022\023google.cloud.run.v2\032\031google/api/res" + + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + + "ttingsProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_VpcAccess_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VpcAccess_descriptor, + new java.lang.String[] { "Connector", "Egress", }); + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, + new java.lang.String[] { "UseDefault", "BreakglassJustification", "BinauthzMethod", }); + internal_static_google_cloud_run_v2_RevisionScaling_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionScaling_descriptor, + new java.lang.String[] { "MinInstanceCount", "MaxInstanceCount", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java similarity index 74% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java index 046d4ca..b57dc82 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * VersionToPath maps a specific version of a secret to a relative file to mount
  * to, relative to VolumeMount's mount_path.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.VersionToPath}
  */
-public final class VersionToPath extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VersionToPath extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VersionToPath)
     VersionToPathOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VersionToPath.newBuilder() to construct.
   private VersionToPath(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VersionToPath() {
     path_ = "";
     version_ = "";
@@ -45,15 +27,16 @@ private VersionToPath() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VersionToPath();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VersionToPath(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,32 +55,30 @@ private VersionToPath(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              path_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            path_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
-            }
-          case 24:
-            {
-              mode_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            version_ = s;
+            break;
+          }
+          case 24: {
+
+            mode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -105,39 +86,34 @@ private VersionToPath(
     } 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.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.VersionToPath.class,
-            com.google.cloud.run.v2.VersionToPath.Builder.class);
+            com.google.cloud.run.v2.VersionToPath.class, com.google.cloud.run.v2.VersionToPath.Builder.class);
   }
 
   public static final int PATH_FIELD_NUMBER = 1;
   private volatile java.lang.Object path_;
   /**
-   *
-   *
    * 
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The path. */ @java.lang.Override @@ -146,29 +122,29 @@ 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; } } /** - * - * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -179,15 +155,12 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -196,30 +169,30 @@ 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; } } /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; - * * @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 { @@ -230,8 +203,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int MODE_FIELD_NUMBER = 3; private int mode_; /** - * - * *
    * Integer octal mode bits to use on this file, must be a value between
    * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -249,7 +220,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -258,7 +228,6 @@ public int getMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +239,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -296,7 +266,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (mode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, mode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -306,16 +277,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.run.v2.VersionToPath)) { return super.equals(obj); } com.google.cloud.run.v2.VersionToPath other = (com.google.cloud.run.v2.VersionToPath) obj; - if (!getPath().equals(other.getPath())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (getMode() != other.getMode()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getMode() + != other.getMode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,103 +312,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VersionToPath parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VersionToPath parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.VersionToPath parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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; } /** - * - * *
    * VersionToPath maps a specific version of a secret to a relative file to mount
    * to, relative to VolumeMount's mount_path.
@@ -442,23 +410,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.VersionToPath}
    */
-  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.run.v2.VersionToPath)
       com.google.cloud.run.v2.VersionToPathOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.VersionToPath.class,
-              com.google.cloud.run.v2.VersionToPath.Builder.class);
+              com.google.cloud.run.v2.VersionToPath.class, com.google.cloud.run.v2.VersionToPath.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.VersionToPath.newBuilder()
@@ -466,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();
@@ -488,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
     }
 
     @java.lang.Override
@@ -509,8 +476,7 @@ public com.google.cloud.run.v2.VersionToPath build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.VersionToPath buildPartial() {
-      com.google.cloud.run.v2.VersionToPath result =
-          new com.google.cloud.run.v2.VersionToPath(this);
+      com.google.cloud.run.v2.VersionToPath result = new com.google.cloud.run.v2.VersionToPath(this);
       result.path_ = path_;
       result.version_ = version_;
       result.mode_ = mode_;
@@ -522,39 +488,38 @@ public com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath) {
-        return mergeFrom((com.google.cloud.run.v2.VersionToPath) other);
+        return mergeFrom((com.google.cloud.run.v2.VersionToPath)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,20 +570,18 @@ public Builder mergeFrom(
 
     private java.lang.Object path_ = "";
     /**
-     *
-     *
      * 
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -627,21 +590,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -649,61 +611,54 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -711,21 +666,19 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; - * * @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; @@ -734,22 +687,21 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; - * * @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 { @@ -757,73 +709,64 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; - * * @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; } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; - * * @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; } - private int mode_; + private int mode_ ; /** - * - * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -841,7 +784,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -849,8 +791,6 @@ public int getMode() { return mode_; } /** - * - * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -868,19 +808,16 @@ public int getMode() {
      * 
* * int32 mode = 3; - * * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(int value) { - + mode_ = value; onChanged(); return this; } /** - * - * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -898,18 +835,17 @@ public Builder setMode(int value) {
      * 
* * int32 mode = 3; - * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 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); } @@ -919,12 +855,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VersionToPath) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VersionToPath) private static final com.google.cloud.run.v2.VersionToPath DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VersionToPath(); } @@ -933,16 +869,16 @@ public static com.google.cloud.run.v2.VersionToPath getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VersionToPath parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionToPath(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionToPath parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionToPath(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +893,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VersionToPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java similarity index 72% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java index 4002f7c..c4ede29 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java @@ -1,83 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VersionToPathOrBuilder - extends +public interface VersionToPathOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VersionToPath) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Integer octal mode bits to use on this file, must be a value between
    * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -95,7 +67,6 @@ public interface VersionToPathOrBuilder
    * 
* * int32 mode = 3; - * * @return The mode. */ int getMode(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java similarity index 73% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java index 7440876..ecd8fe5 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** - * - * *
  * Volume represents a named volume in a container.
  * 
* * Protobuf type {@code google.cloud.run.v2.Volume} */ -public final class Volume extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Volume extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Volume) VolumeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Volume() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private Volume( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.run.v2.SecretVolumeSource.Builder subBuilder = null; + if (volumeTypeCase_ == 2) { + subBuilder = ((com.google.cloud.run.v2.SecretVolumeSource) volumeType_).toBuilder(); } - case 18: - { - com.google.cloud.run.v2.SecretVolumeSource.Builder subBuilder = null; - if (volumeTypeCase_ == 2) { - subBuilder = ((com.google.cloud.run.v2.SecretVolumeSource) volumeType_).toBuilder(); - } - volumeType_ = - input.readMessage( - com.google.cloud.run.v2.SecretVolumeSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) volumeType_); - volumeType_ = subBuilder.buildPartial(); - } - volumeTypeCase_ = 2; - break; + volumeType_ = + input.readMessage(com.google.cloud.run.v2.SecretVolumeSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) volumeType_); + volumeType_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.run.v2.CloudSqlInstance.Builder subBuilder = null; - if (volumeTypeCase_ == 3) { - subBuilder = ((com.google.cloud.run.v2.CloudSqlInstance) volumeType_).toBuilder(); - } - volumeType_ = - input.readMessage( - com.google.cloud.run.v2.CloudSqlInstance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) volumeType_); - volumeType_ = subBuilder.buildPartial(); - } - volumeTypeCase_ = 3; - break; + volumeTypeCase_ = 2; + break; + } + case 26: { + com.google.cloud.run.v2.CloudSqlInstance.Builder subBuilder = null; + if (volumeTypeCase_ == 3) { + subBuilder = ((com.google.cloud.run.v2.CloudSqlInstance) volumeType_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + volumeType_ = + input.readMessage(com.google.cloud.run.v2.CloudSqlInstance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) volumeType_); + volumeType_ = subBuilder.buildPartial(); } + volumeTypeCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,39 +101,35 @@ private Volume( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_Volume_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Volume.class, com.google.cloud.run.v2.Volume.Builder.class); } private int volumeTypeCase_ = 0; private java.lang.Object volumeType_; - public enum VolumeTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SECRET(2), CLOUD_SQL_INSTANCE(3), VOLUMETYPE_NOT_SET(0); private final int value; - private VolumeTypeCase(int value) { this.value = value; } @@ -171,37 +145,31 @@ public static VolumeTypeCase valueOf(int value) { public static VolumeTypeCase forNumber(int value) { switch (value) { - case 2: - return SECRET; - case 3: - return CLOUD_SQL_INSTANCE; - case 0: - return VOLUMETYPE_NOT_SET; - default: - return null; + case 2: return SECRET; + case 3: return CLOUD_SQL_INSTANCE; + case 0: return VOLUMETYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public VolumeTypeCase getVolumeTypeCase() { - return VolumeTypeCase.forNumber(volumeTypeCase_); + public VolumeTypeCase + getVolumeTypeCase() { + return VolumeTypeCase.forNumber( + volumeTypeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -210,29 +178,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. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -242,15 +210,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SECRET_FIELD_NUMBER = 2; /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return Whether the secret field is set. */ @java.lang.Override @@ -258,27 +223,22 @@ public boolean hasSecret() { return volumeTypeCase_ == 2; } /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return The secret. */ @java.lang.Override public com.google.cloud.run.v2.SecretVolumeSource getSecret() { if (volumeTypeCase_ == 2) { - return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_; + return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_; } return com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance(); } /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -289,15 +249,13 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() {
   @java.lang.Override
   public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder() {
     if (volumeTypeCase_ == 2) {
-      return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_;
+       return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_;
     }
     return com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance();
   }
 
   public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -305,7 +263,6 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return Whether the cloudSqlInstance field is set. */ @java.lang.Override @@ -313,8 +270,6 @@ public boolean hasCloudSqlInstance() { return volumeTypeCase_ == 3; } /** - * - * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -322,19 +277,16 @@ public boolean hasCloudSqlInstance() {
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return The cloudSqlInstance. */ @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() { if (volumeTypeCase_ == 3) { - return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_; + return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_; } return com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance(); } /** - * - * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -346,13 +298,12 @@ public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() {
   @java.lang.Override
   public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBuilder() {
     if (volumeTypeCase_ == 3) {
-      return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_;
+       return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_;
     }
     return com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -364,7 +315,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_);
     }
@@ -387,14 +339,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (volumeTypeCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.run.v2.SecretVolumeSource) volumeType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.run.v2.SecretVolumeSource) volumeType_);
     }
     if (volumeTypeCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.run.v2.CloudSqlInstance) volumeType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.run.v2.CloudSqlInstance) volumeType_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -404,21 +354,24 @@ 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.run.v2.Volume)) {
       return super.equals(obj);
     }
     com.google.cloud.run.v2.Volume other = (com.google.cloud.run.v2.Volume) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (!getVolumeTypeCase().equals(other.getVolumeTypeCase())) return false;
     switch (volumeTypeCase_) {
       case 2:
-        if (!getSecret().equals(other.getSecret())) return false;
+        if (!getSecret()
+            .equals(other.getSecret())) return false;
         break;
       case 3:
-        if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
+        if (!getCloudSqlInstance()
+            .equals(other.getCloudSqlInstance())) return false;
         break;
       case 0:
       default:
@@ -453,123 +406,116 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.run.v2.Volume parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.run.v2.Volume parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.run.v2.Volume parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.cloud.run.v2.Volume parseFrom(
+      com.google.protobuf.CodedInputStream 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.run.v2.Volume 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.run.v2.Volume 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;
   }
   /**
-   *
-   *
    * 
    * Volume represents a named volume in a container.
    * 
* * Protobuf type {@code google.cloud.run.v2.Volume} */ - 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.run.v2.Volume) com.google.cloud.run.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_Volume_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Volume.class, com.google.cloud.run.v2.Volume.Builder.class); } @@ -579,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(); @@ -599,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override @@ -645,39 +592,38 @@ public com.google.cloud.run.v2.Volume 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.run.v2.Volume) { - return mergeFrom((com.google.cloud.run.v2.Volume) other); + return mergeFrom((com.google.cloud.run.v2.Volume)other); } else { super.mergeFrom(other); return this; @@ -691,20 +637,17 @@ public Builder mergeFrom(com.google.cloud.run.v2.Volume other) { onChanged(); } switch (other.getVolumeTypeCase()) { - case SECRET: - { - mergeSecret(other.getSecret()); - break; - } - case CLOUD_SQL_INSTANCE: - { - mergeCloudSqlInstance(other.getCloudSqlInstance()); - break; - } - case VOLUMETYPE_NOT_SET: - { - break; - } + case SECRET: { + mergeSecret(other.getSecret()); + break; + } + case CLOUD_SQL_INSTANCE: { + mergeCloudSqlInstance(other.getCloudSqlInstance()); + break; + } + case VOLUMETYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -734,12 +677,12 @@ public Builder mergeFrom( } return this; } - private int volumeTypeCase_ = 0; private java.lang.Object volumeType_; - - public VolumeTypeCase getVolumeTypeCase() { - return VolumeTypeCase.forNumber(volumeTypeCase_); + public VolumeTypeCase + getVolumeTypeCase() { + return VolumeTypeCase.forNumber( + volumeTypeCase_); } public Builder clearVolumeType() { @@ -749,22 +692,21 @@ public Builder clearVolumeType() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -773,21 +715,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -795,81 +736,68 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretVolumeSource, - com.google.cloud.run.v2.SecretVolumeSource.Builder, - com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> - secretBuilder_; + com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> secretBuilder_; /** - * - * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return Whether the secret field is set. */ @java.lang.Override @@ -877,15 +805,12 @@ public boolean hasSecret() { return volumeTypeCase_ == 2; } /** - * - * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return The secret. */ @java.lang.Override @@ -903,8 +828,6 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() { } } /** - * - * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -926,8 +849,6 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -935,7 +856,8 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
      *
      * .google.cloud.run.v2.SecretVolumeSource secret = 2;
      */
-    public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource.Builder builderForValue) {
+    public Builder setSecret(
+        com.google.cloud.run.v2.SecretVolumeSource.Builder builderForValue) {
       if (secretBuilder_ == null) {
         volumeType_ = builderForValue.build();
         onChanged();
@@ -946,8 +868,6 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -957,13 +877,10 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource.Builder buil
      */
     public Builder mergeSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       if (secretBuilder_ == null) {
-        if (volumeTypeCase_ == 2
-            && volumeType_ != com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance()) {
-          volumeType_ =
-              com.google.cloud.run.v2.SecretVolumeSource.newBuilder(
-                      (com.google.cloud.run.v2.SecretVolumeSource) volumeType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (volumeTypeCase_ == 2 &&
+            volumeType_ != com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance()) {
+          volumeType_ = com.google.cloud.run.v2.SecretVolumeSource.newBuilder((com.google.cloud.run.v2.SecretVolumeSource) volumeType_)
+              .mergeFrom(value).buildPartial();
         } else {
           volumeType_ = value;
         }
@@ -979,8 +896,6 @@ public Builder mergeSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -1005,8 +920,6 @@ public Builder clearSecret() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -1018,8 +931,6 @@ public com.google.cloud.run.v2.SecretVolumeSource.Builder getSecretBuilder() {
       return getSecretFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -1039,8 +950,6 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -1049,38 +958,27 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
      * .google.cloud.run.v2.SecretVolumeSource secret = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.SecretVolumeSource,
-            com.google.cloud.run.v2.SecretVolumeSource.Builder,
-            com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>
+        com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> 
         getSecretFieldBuilder() {
       if (secretBuilder_ == null) {
         if (!(volumeTypeCase_ == 2)) {
           volumeType_ = com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance();
         }
-        secretBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.SecretVolumeSource,
-                com.google.cloud.run.v2.SecretVolumeSource.Builder,
-                com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>(
+        secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>(
                 (com.google.cloud.run.v2.SecretVolumeSource) volumeType_,
                 getParentForChildren(),
                 isClean());
         volumeType_ = null;
       }
       volumeTypeCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return secretBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.CloudSqlInstance,
-            com.google.cloud.run.v2.CloudSqlInstance.Builder,
-            com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>
-        cloudSqlInstanceBuilder_;
+        com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder> cloudSqlInstanceBuilder_;
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1088,7 +986,6 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return Whether the cloudSqlInstance field is set. */ @java.lang.Override @@ -1096,8 +993,6 @@ public boolean hasCloudSqlInstance() { return volumeTypeCase_ == 3; } /** - * - * *
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1105,7 +1000,6 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1123,8 +1017,6 @@ public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() { } } /** - * - * *
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1147,8 +1039,6 @@ public Builder setCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance valu
       return this;
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1169,8 +1059,6 @@ public Builder setCloudSqlInstance(
       return this;
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1181,13 +1069,10 @@ public Builder setCloudSqlInstance(
      */
     public Builder mergeCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance value) {
       if (cloudSqlInstanceBuilder_ == null) {
-        if (volumeTypeCase_ == 3
-            && volumeType_ != com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance()) {
-          volumeType_ =
-              com.google.cloud.run.v2.CloudSqlInstance.newBuilder(
-                      (com.google.cloud.run.v2.CloudSqlInstance) volumeType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (volumeTypeCase_ == 3 &&
+            volumeType_ != com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance()) {
+          volumeType_ = com.google.cloud.run.v2.CloudSqlInstance.newBuilder((com.google.cloud.run.v2.CloudSqlInstance) volumeType_)
+              .mergeFrom(value).buildPartial();
         } else {
           volumeType_ = value;
         }
@@ -1203,8 +1088,6 @@ public Builder mergeCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance va
       return this;
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1230,8 +1113,6 @@ public Builder clearCloudSqlInstance() {
       return this;
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1244,8 +1125,6 @@ public com.google.cloud.run.v2.CloudSqlInstance.Builder getCloudSqlInstanceBuild
       return getCloudSqlInstanceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1266,8 +1145,6 @@ public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBu
       }
     }
     /**
-     *
-     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1277,32 +1154,26 @@ public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBu
      * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.CloudSqlInstance,
-            com.google.cloud.run.v2.CloudSqlInstance.Builder,
-            com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>
+        com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder> 
         getCloudSqlInstanceFieldBuilder() {
       if (cloudSqlInstanceBuilder_ == null) {
         if (!(volumeTypeCase_ == 3)) {
           volumeType_ = com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance();
         }
-        cloudSqlInstanceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.CloudSqlInstance,
-                com.google.cloud.run.v2.CloudSqlInstance.Builder,
-                com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>(
+        cloudSqlInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>(
                 (com.google.cloud.run.v2.CloudSqlInstance) volumeType_,
                 getParentForChildren(),
                 isClean());
         volumeType_ = null;
       }
       volumeTypeCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return cloudSqlInstanceBuilder_;
     }
-
     @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);
     }
 
@@ -1312,12 +1183,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Volume)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Volume)
   private static final com.google.cloud.run.v2.Volume DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Volume();
   }
@@ -1326,16 +1197,16 @@ public static com.google.cloud.run.v2.Volume getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Volume parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Volume(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Volume parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Volume(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1350,4 +1221,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Volume getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
similarity index 73%
rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
index 25ad090..6588103 100644
--- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
+++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.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/run/v2/k8s.min.proto
 
 package com.google.cloud.run.v2;
 
 /**
- *
- *
  * 
  * VolumeMount describes a mounting of a Volume within a container.
  * 
* * Protobuf type {@code google.cloud.run.v2.VolumeMount} */ -public final class VolumeMount extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VolumeMount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VolumeMount) VolumeMountOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VolumeMount.newBuilder() to construct. private VolumeMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VolumeMount() { name_ = ""; mountPath_ = ""; @@ -44,15 +26,16 @@ private VolumeMount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VolumeMount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VolumeMount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private VolumeMount( 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 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - mountPath_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mountPath_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private VolumeMount( } 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.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_VolumeMount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.VolumeMount.class, - com.google.cloud.run.v2.VolumeMount.Builder.class); + com.google.cloud.run.v2.VolumeMount.class, com.google.cloud.run.v2.VolumeMount.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -140,29 +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. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -173,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int MOUNT_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object mountPath_; /** - * - * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -184,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ @java.lang.Override @@ -193,15 +166,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; } } /** - * - * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -211,15 +183,16 @@ public java.lang.String getMountPath() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -228,7 +201,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +212,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_); } @@ -270,15 +243,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.run.v2.VolumeMount)) { return super.equals(obj); } com.google.cloud.run.v2.VolumeMount other = (com.google.cloud.run.v2.VolumeMount) obj; - if (!getName().equals(other.getName())) return false; - if (!getMountPath().equals(other.getMountPath())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getMountPath() + .equals(other.getMountPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,126 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VolumeMount parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VolumeMount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.VolumeMount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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; } /** - * - * *
    * VolumeMount describes a mounting of a Volume within a container.
    * 
* * Protobuf type {@code google.cloud.run.v2.VolumeMount} */ - 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.run.v2.VolumeMount) com.google.cloud.run.v2.VolumeMountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_VolumeMount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.VolumeMount.class, - com.google.cloud.run.v2.VolumeMount.Builder.class); + com.google.cloud.run.v2.VolumeMount.class, com.google.cloud.run.v2.VolumeMount.Builder.class); } // Construct using com.google.cloud.run.v2.VolumeMount.newBuilder() @@ -426,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(); @@ -446,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_VolumeMount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override @@ -478,39 +446,38 @@ public com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount) { - return mergeFrom((com.google.cloud.run.v2.VolumeMount) other); + return mergeFrom((com.google.cloud.run.v2.VolumeMount)other); } else { super.mergeFrom(other); return this; @@ -558,20 +525,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -580,21 +545,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -602,61 +566,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -664,8 +621,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object mountPath_ = ""; /** - * - * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -675,13 +630,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -690,8 +645,6 @@ public java.lang.String getMountPath() { } } /** - * - * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -701,14 +654,15 @@ public java.lang.String getMountPath() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -716,8 +670,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -727,22 +679,20 @@ public com.google.protobuf.ByteString getMountPathBytes() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -752,18 +702,15 @@ public Builder setMountPath(java.lang.String value) {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** - * - * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -773,23 +720,23 @@ public Builder clearMountPath() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } - @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); } @@ -799,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VolumeMount) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VolumeMount) private static final com.google.cloud.run.v2.VolumeMount DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VolumeMount(); } @@ -813,16 +760,16 @@ public static com.google.cloud.run.v2.VolumeMount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeMount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeMount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeMount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeMount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VolumeMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java similarity index 69% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java index c9a4335..5d944ac 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VolumeMountOrBuilder - extends +public interface VolumeMountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VolumeMount) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -60,13 +37,10 @@ public interface VolumeMountOrBuilder
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -76,8 +50,8 @@ public interface VolumeMountOrBuilder
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java similarity index 78% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java index d9311c1..8437d5b 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java @@ -1,82 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VolumeOrBuilder - extends +public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Volume) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return Whether the secret field is set. */ boolean hasSecret(); /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; - * * @return The secret. */ com.google.cloud.run.v2.SecretVolumeSource getSecret(); /** - * - * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -87,8 +58,6 @@ public interface VolumeOrBuilder
   com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder();
 
   /**
-   *
-   *
    * 
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -96,13 +65,10 @@ public interface VolumeOrBuilder
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return Whether the cloudSqlInstance field is set. */ boolean hasCloudSqlInstance(); /** - * - * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -110,13 +76,10 @@ public interface VolumeOrBuilder
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return The cloudSqlInstance. */ com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance(); /** - * - * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
similarity index 72%
rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
index 19365f3..5cf0764 100644
--- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
+++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.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/run/v2/vendor_settings.proto
 
 package com.google.cloud.run.v2;
 
 /**
- *
- *
  * 
  * VPC Access settings. For more information on creating a VPC Connector, visit
  * https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.run.v2.VpcAccess}
  */
-public final class VpcAccess extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VpcAccess extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VpcAccess)
     VpcAccessOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VpcAccess.newBuilder() to construct.
   private VpcAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VpcAccess() {
     connector_ = "";
     egress_ = 0;
@@ -47,15 +29,16 @@ private VpcAccess() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VpcAccess();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VpcAccess(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private VpcAccess(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              connector_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            connector_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              egress_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            egress_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,41 +83,36 @@ private VpcAccess(
     } 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.run.v2.VendorSettingsProto
-        .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.VendorSettingsProto
-        .internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
+    return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.VpcAccess.class,
-            com.google.cloud.run.v2.VpcAccess.Builder.class);
+            com.google.cloud.run.v2.VpcAccess.class, com.google.cloud.run.v2.VpcAccess.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Egress options for VPC access.
    * 
* * Protobuf enum {@code google.cloud.run.v2.VpcAccess.VpcEgress} */ - public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { + public enum VpcEgress + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified
      * 
@@ -145,8 +121,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ VPC_EGRESS_UNSPECIFIED(0), /** - * - * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -155,8 +129,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ ALL_TRAFFIC(1), /** - * - * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -168,8 +140,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified
      * 
@@ -178,8 +148,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VPC_EGRESS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -188,8 +156,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_TRAFFIC_VALUE = 1; /** - * - * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -198,6 +164,7 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVATE_RANGES_ONLY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -222,49 +189,49 @@ public static VpcEgress valueOf(int value) { */ public static VpcEgress forNumber(int value) { switch (value) { - case 0: - return VPC_EGRESS_UNSPECIFIED; - case 1: - return ALL_TRAFFIC; - case 2: - return PRIVATE_RANGES_ONLY; - default: - return null; + case 0: return VPC_EGRESS_UNSPECIFIED; + case 1: return ALL_TRAFFIC; + case 2: return PRIVATE_RANGES_ONLY; + 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< + VpcEgress> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VpcEgress findValueByNumber(int number) { + return VpcEgress.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VpcEgress findValueByNumber(int number) { - return VpcEgress.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.run.v2.VpcAccess.getDescriptor().getEnumTypes().get(0); } private static final VpcEgress[] VALUES = values(); - public static VpcEgress valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VpcEgress 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; @@ -284,15 +251,12 @@ private VpcEgress(int value) { public static final int CONNECTOR_FIELD_NUMBER = 1; private volatile java.lang.Object connector_; /** - * - * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The connector. */ @java.lang.Override @@ -301,30 +265,30 @@ public java.lang.String getConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connector_ = s; return s; } } /** - * - * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for connector. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectorBytes() { + public com.google.protobuf.ByteString + getConnectorBytes() { java.lang.Object ref = connector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connector_ = b; return b; } else { @@ -335,41 +299,31 @@ public com.google.protobuf.ByteString getConnectorBytes() { public static final int EGRESS_FIELD_NUMBER = 2; private int egress_; /** - * - * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The enum numeric value on the wire for egress. */ - @java.lang.Override - public int getEgressValue() { + @java.lang.Override public int getEgressValue() { return egress_; } /** - * - * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The egress. */ - @java.lang.Override - public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { + @java.lang.Override public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.VpcAccess.VpcEgress result = - com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); + com.google.cloud.run.v2.VpcAccess.VpcEgress result = com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); return result == null ? com.google.cloud.run.v2.VpcAccess.VpcEgress.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +335,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(connector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connector_); } @@ -401,7 +356,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connector_); } if (egress_ != com.google.cloud.run.v2.VpcAccess.VpcEgress.VPC_EGRESS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, egress_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, egress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -411,14 +367,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.run.v2.VpcAccess)) { return super.equals(obj); } com.google.cloud.run.v2.VpcAccess other = (com.google.cloud.run.v2.VpcAccess) obj; - if (!getConnector().equals(other.getConnector())) return false; + if (!getConnector() + .equals(other.getConnector())) return false; if (egress_ != other.egress_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -440,103 +397,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VpcAccess parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VpcAccess parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.VpcAccess parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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; } /** - * - * *
    * VPC Access settings. For more information on creating a VPC Connector, visit
    * https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
@@ -546,23 +497,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.VpcAccess}
    */
-  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.run.v2.VpcAccess)
       com.google.cloud.run.v2.VpcAccessOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.VendorSettingsProto
-          .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.VendorSettingsProto
-          .internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
+      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.VpcAccess.class,
-              com.google.cloud.run.v2.VpcAccess.Builder.class);
+              com.google.cloud.run.v2.VpcAccess.class, com.google.cloud.run.v2.VpcAccess.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.VpcAccess.newBuilder()
@@ -570,15 +519,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 +540,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.run.v2.VendorSettingsProto
-          .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
     }
 
     @java.lang.Override
@@ -622,39 +572,38 @@ public com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess) {
-        return mergeFrom((com.google.cloud.run.v2.VpcAccess) other);
+        return mergeFrom((com.google.cloud.run.v2.VpcAccess)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -701,21 +650,19 @@ public Builder mergeFrom(
 
     private java.lang.Object connector_ = "";
     /**
-     *
-     *
      * 
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The connector. */ public java.lang.String getConnector() { java.lang.Object ref = connector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connector_ = s; return s; @@ -724,22 +671,21 @@ public java.lang.String getConnector() { } } /** - * - * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for connector. */ - public com.google.protobuf.ByteString getConnectorBytes() { + public com.google.protobuf.ByteString + getConnectorBytes() { java.lang.Object ref = connector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connector_ = b; return b; } else { @@ -747,64 +693,57 @@ public com.google.protobuf.ByteString getConnectorBytes() { } } /** - * - * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @param value The connector to set. * @return This builder for chaining. */ - public Builder setConnector(java.lang.String value) { + public Builder setConnector( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connector_ = value; onChanged(); return this; } /** - * - * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearConnector() { - + connector_ = getDefaultInstance().getConnector(); onChanged(); return this; } /** - * - * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for connector to set. * @return This builder for chaining. */ - public Builder setConnectorBytes(com.google.protobuf.ByteString value) { + public Builder setConnectorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connector_ = value; onChanged(); return this; @@ -812,65 +751,51 @@ public Builder setConnectorBytes(com.google.protobuf.ByteString value) { private int egress_ = 0; /** - * - * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The enum numeric value on the wire for egress. */ - @java.lang.Override - public int getEgressValue() { + @java.lang.Override public int getEgressValue() { return egress_; } /** - * - * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @param value The enum numeric value on the wire for egress to set. * @return This builder for chaining. */ public Builder setEgressValue(int value) { - + egress_ = value; onChanged(); return this; } /** - * - * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The egress. */ @java.lang.Override public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.VpcAccess.VpcEgress result = - com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); + com.google.cloud.run.v2.VpcAccess.VpcEgress result = com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); return result == null ? com.google.cloud.run.v2.VpcAccess.VpcEgress.UNRECOGNIZED : result; } /** - * - * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @param value The egress to set. * @return This builder for chaining. */ @@ -878,31 +803,28 @@ public Builder setEgress(com.google.cloud.run.v2.VpcAccess.VpcEgress value) { if (value == null) { throw new NullPointerException(); } - + egress_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return This builder for chaining. */ public Builder clearEgress() { - + egress_ = 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); } @@ -912,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VpcAccess) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VpcAccess) private static final com.google.cloud.run.v2.VpcAccess DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VpcAccess(); } @@ -926,16 +848,16 @@ public static com.google.cloud.run.v2.VpcAccess getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcAccess parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcAccess(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcAccess parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcAccess(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VpcAccess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java similarity index 63% rename from proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java index 76469f4..a531dc7 100644 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java @@ -1,76 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface VpcAccessOrBuilder - extends +public interface VpcAccessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VpcAccess) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The connector. */ java.lang.String getConnector(); /** - * - * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for connector. */ - com.google.protobuf.ByteString getConnectorBytes(); + com.google.protobuf.ByteString + getConnectorBytes(); /** - * - * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The enum numeric value on the wire for egress. */ int getEgressValue(); /** - * - * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; - * * @return The egress. */ com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress(); diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto diff --git a/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto similarity index 100% rename from proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto rename to owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..54315a1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.RevisionsSettings; +import com.google.cloud.run.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. + RevisionsSettings revisionsSettings = + RevisionsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); + } +} +// [END run_v2_generated_revisionsclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..6a6936b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_create_setcredentialsprovider1_sync] +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.RevisionsSettings; + +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. + RevisionsSettings revisionsSettings = + RevisionsSettings.newBuilder() + .setTransportChannelProvider( + RevisionsSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); + } +} +// [END run_v2_generated_revisionsclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..5255169 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * 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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_create_setendpoint_sync] +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.RevisionsSettings; +import com.google.cloud.run.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. + RevisionsSettings revisionsSettings = + RevisionsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); + } +} +// [END run_v2_generated_revisionsclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java new file mode 100644 index 0000000..9c007e8 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_deleterevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.DeleteRevisionRequest; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteRevision(); + } + + public static void asyncDeleteRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + DeleteRevisionRequest request = + DeleteRevisionRequest.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = revisionsClient.deleteRevisionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_revisionsclient_deleterevision_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java new file mode 100644 index 0000000..f870bc2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_deleterevision_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.DeleteRevisionRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class AsyncDeleteRevisionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteRevisionLRO(); + } + + public static void asyncDeleteRevisionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + DeleteRevisionRequest request = + DeleteRevisionRequest.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + revisionsClient.deleteRevisionOperationCallable().futureCall(request); + // Do something. + Revision response = future.get(); + } + } +} +// [END run_v2_generated_revisionsclient_deleterevision_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java new file mode 100644 index 0000000..cd3fb73 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_deleterevision_sync] +import com.google.cloud.run.v2.DeleteRevisionRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncDeleteRevision { + + public static void main(String[] args) throws Exception { + syncDeleteRevision(); + } + + public static void syncDeleteRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + DeleteRevisionRequest request = + DeleteRevisionRequest.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Revision response = revisionsClient.deleteRevisionAsync(request).get(); + } + } +} +// [END run_v2_generated_revisionsclient_deleterevision_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java new file mode 100644 index 0000000..c2f323f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_deleterevision_revisionname_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncDeleteRevisionRevisionname { + + public static void main(String[] args) throws Exception { + syncDeleteRevisionRevisionname(); + } + + public static void syncDeleteRevisionRevisionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + Revision response = revisionsClient.deleteRevisionAsync(name).get(); + } + } +} +// [END run_v2_generated_revisionsclient_deleterevision_revisionname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java new file mode 100644 index 0000000..e7ad444 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_deleterevision_string_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncDeleteRevisionString { + + public static void main(String[] args) throws Exception { + syncDeleteRevisionString(); + } + + public static void syncDeleteRevisionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + String name = + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); + Revision response = revisionsClient.deleteRevisionAsync(name).get(); + } + } +} +// [END run_v2_generated_revisionsclient_deleterevision_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java new file mode 100644 index 0000000..7622bf1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_getrevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.GetRevisionRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class AsyncGetRevision { + + public static void main(String[] args) throws Exception { + asyncGetRevision(); + } + + public static void asyncGetRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + GetRevisionRequest request = + GetRevisionRequest.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .build(); + ApiFuture future = revisionsClient.getRevisionCallable().futureCall(request); + // Do something. + Revision response = future.get(); + } + } +} +// [END run_v2_generated_revisionsclient_getrevision_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java new file mode 100644 index 0000000..f65d388 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_getrevision_sync] +import com.google.cloud.run.v2.GetRevisionRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncGetRevision { + + public static void main(String[] args) throws Exception { + syncGetRevision(); + } + + public static void syncGetRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + GetRevisionRequest request = + GetRevisionRequest.newBuilder() + .setName( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .build(); + Revision response = revisionsClient.getRevision(request); + } + } +} +// [END run_v2_generated_revisionsclient_getrevision_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java new file mode 100644 index 0000000..1eb7745 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_getrevision_revisionname_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncGetRevisionRevisionname { + + public static void main(String[] args) throws Exception { + syncGetRevisionRevisionname(); + } + + public static void syncGetRevisionRevisionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); + Revision response = revisionsClient.getRevision(name); + } + } +} +// [END run_v2_generated_revisionsclient_getrevision_revisionname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java new file mode 100644 index 0000000..761d750 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_getrevision_string_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionName; +import com.google.cloud.run.v2.RevisionsClient; + +public class SyncGetRevisionString { + + public static void main(String[] args) throws Exception { + syncGetRevisionString(); + } + + public static void syncGetRevisionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + String name = + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); + Revision response = revisionsClient.getRevision(name); + } + } +} +// [END run_v2_generated_revisionsclient_getrevision_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java new file mode 100644 index 0000000..fe797d7 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_listrevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ListRevisionsRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.ServiceName; + +public class AsyncListRevisions { + + public static void main(String[] args) throws Exception { + asyncListRevisions(); + } + + public static void asyncListRevisions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + ListRevisionsRequest request = + ListRevisionsRequest.newBuilder() + .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + ApiFuture future = revisionsClient.listRevisionsPagedCallable().futureCall(request); + // Do something. + for (Revision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_revisionsclient_listrevisions_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java new file mode 100644 index 0000000..bafc415 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_listrevisions_paged_async] +import com.google.cloud.run.v2.ListRevisionsRequest; +import com.google.cloud.run.v2.ListRevisionsResponse; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.ServiceName; +import com.google.common.base.Strings; + +public class AsyncListRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListRevisionsPaged(); + } + + public static void asyncListRevisionsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + ListRevisionsRequest request = + ListRevisionsRequest.newBuilder() + .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + while (true) { + ListRevisionsResponse response = revisionsClient.listRevisionsCallable().call(request); + for (Revision element : response.getRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END run_v2_generated_revisionsclient_listrevisions_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java new file mode 100644 index 0000000..227c054 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_listrevisions_sync] +import com.google.cloud.run.v2.ListRevisionsRequest; +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.ServiceName; + +public class SyncListRevisions { + + public static void main(String[] args) throws Exception { + syncListRevisions(); + } + + public static void syncListRevisions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + ListRevisionsRequest request = + ListRevisionsRequest.newBuilder() + .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + for (Revision element : revisionsClient.listRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_revisionsclient_listrevisions_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java new file mode 100644 index 0000000..1af4902 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_listrevisions_servicename_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.ServiceName; + +public class SyncListRevisionsServicename { + + public static void main(String[] args) throws Exception { + syncListRevisionsServicename(); + } + + public static void syncListRevisionsServicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_revisionsclient_listrevisions_servicename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java new file mode 100644 index 0000000..7599d48 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.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.run.v2.samples; + +// [START run_v2_generated_revisionsclient_listrevisions_string_sync] +import com.google.cloud.run.v2.Revision; +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.ServiceName; + +public class SyncListRevisionsString { + + public static void main(String[] args) throws Exception { + syncListRevisionsString(); + } + + public static void syncListRevisionsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RevisionsClient revisionsClient = RevisionsClient.create()) { + String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); + for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_revisionsclient_listrevisions_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java new file mode 100644 index 0000000..93ca1ed --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.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.run.v2.samples; + +// [START run_v2_generated_revisionssettings_getrevision_sync] +import com.google.cloud.run.v2.RevisionsSettings; +import java.time.Duration; + +public class SyncGetRevision { + + public static void main(String[] args) throws Exception { + syncGetRevision(); + } + + public static void syncGetRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RevisionsSettings.Builder revisionsSettingsBuilder = RevisionsSettings.newBuilder(); + revisionsSettingsBuilder + .getRevisionSettings() + .setRetrySettings( + revisionsSettingsBuilder + .getRevisionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RevisionsSettings revisionsSettings = revisionsSettingsBuilder.build(); + } +} +// [END run_v2_generated_revisionssettings_getrevision_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..64a046f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.ServicesSettings; +import com.google.cloud.run.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. + ServicesSettings servicesSettings = + ServicesSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ServicesClient servicesClient = ServicesClient.create(servicesSettings); + } +} +// [END run_v2_generated_servicesclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..655c0fa --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_create_setcredentialsprovider1_sync] +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.ServicesSettings; + +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. + ServicesSettings servicesSettings = + ServicesSettings.newBuilder() + .setTransportChannelProvider( + ServicesSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + ServicesClient servicesClient = ServicesClient.create(servicesSettings); + } +} +// [END run_v2_generated_servicesclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..68f0b75 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * 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.run.v2.samples; + +// [START run_v2_generated_servicesclient_create_setendpoint_sync] +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.ServicesSettings; +import com.google.cloud.run.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. + ServicesSettings servicesSettings = + ServicesSettings.newBuilder().setEndpoint(myEndpoint).build(); + ServicesClient servicesClient = ServicesClient.create(servicesSettings); + } +} +// [END run_v2_generated_servicesclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java new file mode 100644 index 0000000..684ceee --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_createservice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.CreateServiceRequest; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.longrunning.Operation; + +public class AsyncCreateService { + + public static void main(String[] args) throws Exception { + asyncCreateService(); + } + + public static void asyncCreateService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setService(Service.newBuilder().build()) + .setServiceId("serviceId-194185552") + .setValidateOnly(true) + .build(); + ApiFuture future = servicesClient.createServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_createservice_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java new file mode 100644 index 0000000..eda3f56 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_createservice_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.CreateServiceRequest; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class AsyncCreateServiceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateServiceLRO(); + } + + public static void asyncCreateServiceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setService(Service.newBuilder().build()) + .setServiceId("serviceId-194185552") + .setValidateOnly(true) + .build(); + OperationFuture future = + servicesClient.createServiceOperationCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_createservice_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java new file mode 100644 index 0000000..0120811 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_createservice_sync] +import com.google.cloud.run.v2.CreateServiceRequest; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncCreateService { + + public static void main(String[] args) throws Exception { + syncCreateService(); + } + + public static void syncCreateService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setService(Service.newBuilder().build()) + .setServiceId("serviceId-194185552") + .setValidateOnly(true) + .build(); + Service response = servicesClient.createServiceAsync(request).get(); + } + } +} +// [END run_v2_generated_servicesclient_createservice_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java new file mode 100644 index 0000000..e7b4335 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_createservice_locationnameservicestring_sync] +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncCreateServiceLocationnameServiceString { + + public static void main(String[] args) throws Exception { + syncCreateServiceLocationnameServiceString(); + } + + public static void syncCreateServiceLocationnameServiceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + Service response = servicesClient.createServiceAsync(parent, service, serviceId).get(); + } + } +} +// [END run_v2_generated_servicesclient_createservice_locationnameservicestring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java new file mode 100644 index 0000000..54db6fc --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_createservice_stringservicestring_sync] +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncCreateServiceStringServiceString { + + public static void main(String[] args) throws Exception { + syncCreateServiceStringServiceString(); + } + + public static void syncCreateServiceStringServiceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + Service response = servicesClient.createServiceAsync(parent, service, serviceId).get(); + } + } +} +// [END run_v2_generated_servicesclient_createservice_stringservicestring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java new file mode 100644 index 0000000..cfd782f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_deleteservice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.DeleteServiceRequest; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteService { + + public static void main(String[] args) throws Exception { + asyncDeleteService(); + } + + public static void asyncDeleteService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = servicesClient.deleteServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_deleteservice_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java new file mode 100644 index 0000000..1314ce4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_deleteservice_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.DeleteServiceRequest; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class AsyncDeleteServiceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteServiceLRO(); + } + + public static void asyncDeleteServiceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + servicesClient.deleteServiceOperationCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_deleteservice_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java new file mode 100644 index 0000000..395e53c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_deleteservice_sync] +import com.google.cloud.run.v2.DeleteServiceRequest; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncDeleteService { + + public static void main(String[] args) throws Exception { + syncDeleteService(); + } + + public static void syncDeleteService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Service response = servicesClient.deleteServiceAsync(request).get(); + } + } +} +// [END run_v2_generated_servicesclient_deleteservice_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java new file mode 100644 index 0000000..1e5ef0e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_deleteservice_servicename_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncDeleteServiceServicename { + + public static void main(String[] args) throws Exception { + syncDeleteServiceServicename(); + } + + public static void syncDeleteServiceServicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + Service response = servicesClient.deleteServiceAsync(name).get(); + } + } +} +// [END run_v2_generated_servicesclient_deleteservice_servicename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java new file mode 100644 index 0000000..9fb75e7 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_deleteservice_string_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncDeleteServiceString { + + public static void main(String[] args) throws Exception { + syncDeleteServiceString(); + } + + public static void syncDeleteServiceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); + Service response = servicesClient.deleteServiceAsync(name).get(); + } + } +} +// [END run_v2_generated_servicesclient_deleteservice_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000..cf87a0a --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = servicesClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_getiampolicy_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000..8a8bfc8 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getiampolicy_sync] +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = servicesClient.getIamPolicy(request); + } + } +} +// [END run_v2_generated_servicesclient_getiampolicy_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java new file mode 100644 index 0000000..1587af0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getservice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.GetServiceRequest; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class AsyncGetService { + + public static void main(String[] args) throws Exception { + asyncGetService(); + } + + public static void asyncGetService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + GetServiceRequest request = + GetServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .build(); + ApiFuture future = servicesClient.getServiceCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_getservice_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java new file mode 100644 index 0000000..950891e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getservice_sync] +import com.google.cloud.run.v2.GetServiceRequest; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncGetService { + + public static void main(String[] args) throws Exception { + syncGetService(); + } + + public static void syncGetService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + GetServiceRequest request = + GetServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .build(); + Service response = servicesClient.getService(request); + } + } +} +// [END run_v2_generated_servicesclient_getservice_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java new file mode 100644 index 0000000..72ddd61 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getservice_servicename_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncGetServiceServicename { + + public static void main(String[] args) throws Exception { + syncGetServiceServicename(); + } + + public static void syncGetServiceServicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + Service response = servicesClient.getService(name); + } + } +} +// [END run_v2_generated_servicesclient_getservice_servicename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java new file mode 100644 index 0000000..8503f6f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_getservice_string_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncGetServiceString { + + public static void main(String[] args) throws Exception { + syncGetServiceString(); + } + + public static void syncGetServiceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); + Service response = servicesClient.getService(name); + } + } +} +// [END run_v2_generated_servicesclient_getservice_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java new file mode 100644 index 0000000..f605a8c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_listservices_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ListServicesRequest; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class AsyncListServices { + + public static void main(String[] args) throws Exception { + asyncListServices(); + } + + public static void asyncListServices() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + ApiFuture future = servicesClient.listServicesPagedCallable().futureCall(request); + // Do something. + for (Service element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_servicesclient_listservices_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java new file mode 100644 index 0000000..26da4f1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_listservices_paged_async] +import com.google.cloud.run.v2.ListServicesRequest; +import com.google.cloud.run.v2.ListServicesResponse; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.common.base.Strings; + +public class AsyncListServicesPaged { + + public static void main(String[] args) throws Exception { + asyncListServicesPaged(); + } + + public static void asyncListServicesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + while (true) { + ListServicesResponse response = servicesClient.listServicesCallable().call(request); + for (Service element : response.getServicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END run_v2_generated_servicesclient_listservices_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java new file mode 100644 index 0000000..8316c98 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_listservices_sync] +import com.google.cloud.run.v2.ListServicesRequest; +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncListServices { + + public static void main(String[] args) throws Exception { + syncListServices(); + } + + public static void syncListServices() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + for (Service element : servicesClient.listServices(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_servicesclient_listservices_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java new file mode 100644 index 0000000..b3808ee --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_listservices_locationname_sync] +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncListServicesLocationname { + + public static void main(String[] args) throws Exception { + syncListServicesLocationname(); + } + + public static void syncListServicesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Service element : servicesClient.listServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_servicesclient_listservices_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java new file mode 100644 index 0000000..855d5ec --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_listservices_string_sync] +import com.google.cloud.run.v2.LocationName; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncListServicesString { + + public static void main(String[] args) throws Exception { + syncListServicesString(); + } + + public static void syncListServicesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Service element : servicesClient.listServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_servicesclient_listservices_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000..439cd5e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = servicesClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_setiampolicy_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000..e033009 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_setiampolicy_sync] +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = servicesClient.setIamPolicy(request); + } + } +} +// [END run_v2_generated_servicesclient_setiampolicy_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000..c143cd9 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + servicesClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_testiampermissions_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000..c7d2cf6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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.run.v2.samples; + +// [START run_v2_generated_servicesclient_testiampermissions_sync] +import com.google.cloud.run.v2.ServiceName; +import com.google.cloud.run.v2.ServicesClient; +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 (ServicesClient servicesClient = ServicesClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = servicesClient.testIamPermissions(request); + } + } +} +// [END run_v2_generated_servicesclient_testiampermissions_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java new file mode 100644 index 0000000..cca0236 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_updateservice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.UpdateServiceRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateService { + + public static void main(String[] args) throws Exception { + asyncUpdateService(); + } + + public static void asyncUpdateService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setService(Service.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + ApiFuture future = servicesClient.updateServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_updateservice_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java new file mode 100644 index 0000000..1b1a8ca --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_updateservice_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.UpdateServiceRequest; + +public class AsyncUpdateServiceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateServiceLRO(); + } + + public static void asyncUpdateServiceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setService(Service.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + OperationFuture future = + servicesClient.updateServiceOperationCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END run_v2_generated_servicesclient_updateservice_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java new file mode 100644 index 0000000..6c15866 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.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.run.v2.samples; + +// [START run_v2_generated_servicesclient_updateservice_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.UpdateServiceRequest; + +public class SyncUpdateService { + + public static void main(String[] args) throws Exception { + syncUpdateService(); + } + + public static void syncUpdateService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setService(Service.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + Service response = servicesClient.updateServiceAsync(request).get(); + } + } +} +// [END run_v2_generated_servicesclient_updateservice_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java new file mode 100644 index 0000000..a44fef7 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java @@ -0,0 +1,38 @@ +/* + * 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.run.v2.samples; + +// [START run_v2_generated_servicesclient_updateservice_service_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; + +public class SyncUpdateServiceService { + + public static void main(String[] args) throws Exception { + syncUpdateServiceService(); + } + + public static void syncUpdateServiceService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ServicesClient servicesClient = ServicesClient.create()) { + Service service = Service.newBuilder().build(); + Service response = servicesClient.updateServiceAsync(service).get(); + } + } +} +// [END run_v2_generated_servicesclient_updateservice_service_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java new file mode 100644 index 0000000..52c440d --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.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.run.v2.samples; + +// [START run_v2_generated_servicessettings_getservice_sync] +import com.google.cloud.run.v2.ServicesSettings; +import java.time.Duration; + +public class SyncGetService { + + public static void main(String[] args) throws Exception { + syncGetService(); + } + + public static void syncGetService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ServicesSettings.Builder servicesSettingsBuilder = ServicesSettings.newBuilder(); + servicesSettingsBuilder + .getServiceSettings() + .setRetrySettings( + servicesSettingsBuilder + .getServiceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ServicesSettings servicesSettings = servicesSettingsBuilder.build(); + } +} +// [END run_v2_generated_servicessettings_getservice_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java new file mode 100644 index 0000000..55abff2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.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.run.v2.stub.samples; + +// [START run_v2_generated_revisionsstubsettings_getrevision_sync] +import com.google.cloud.run.v2.stub.RevisionsStubSettings; +import java.time.Duration; + +public class SyncGetRevision { + + public static void main(String[] args) throws Exception { + syncGetRevision(); + } + + public static void syncGetRevision() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RevisionsStubSettings.Builder revisionsSettingsBuilder = RevisionsStubSettings.newBuilder(); + revisionsSettingsBuilder + .getRevisionSettings() + .setRetrySettings( + revisionsSettingsBuilder + .getRevisionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RevisionsStubSettings revisionsSettings = revisionsSettingsBuilder.build(); + } +} +// [END run_v2_generated_revisionsstubsettings_getrevision_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java new file mode 100644 index 0000000..f6585a6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.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.run.v2.stub.samples; + +// [START run_v2_generated_servicesstubsettings_getservice_sync] +import com.google.cloud.run.v2.stub.ServicesStubSettings; +import java.time.Duration; + +public class SyncGetService { + + public static void main(String[] args) throws Exception { + syncGetService(); + } + + public static void syncGetService() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ServicesStubSettings.Builder servicesSettingsBuilder = ServicesStubSettings.newBuilder(); + servicesSettingsBuilder + .getServiceSettings() + .setRetrySettings( + servicesSettingsBuilder + .getServiceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ServicesStubSettings servicesSettings = servicesSettingsBuilder.build(); + } +} +// [END run_v2_generated_servicesstubsettings_getservice_sync] diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java deleted file mode 100644 index 32b3c8a..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,113 +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/run/v2/condition.proto - -package com.google.cloud.run.v2; - -public final class ConditionProto { - private ConditionProto() {} - - 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_run_v2_Condition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Condition_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/run/v2/condition.proto\022\023g" - + "oogle.cloud.run.v2\032\037google/protobuf/time" - + "stamp.proto\"\325\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" - + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" - + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" - + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" - + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" - + "(\0162+.google.cloud.run.v2.Condition.Commo" - + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" - + "gle.cloud.run.v2.Condition.RevisionReaso" - + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" - + "loud.run.v2.Condition.ExecutionReasonH\000\"" - + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" - + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" - + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" - + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" - + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" - + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" - + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" - + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" - + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" - + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" - + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" - + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" - + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" - + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" - + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" - + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" - + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" - + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" - + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" - + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" - + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" - + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" - + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" - + "\024HEALTH_CHECK_SKIPPED\020\013\"o\n\017ExecutionReas" - + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" - + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" - + "ZERO_EXIT_CODE\020\002B\t\n\007reasonsBc\n\027com.googl" - + "e.cloud.run.v2B\016ConditionProtoP\001Z6google" - + ".golang.org/genproto/googleapis/cloud/ru" - + "n/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_Condition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_Condition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Condition_descriptor, - new java.lang.String[] { - "Type", - "State", - "Message", - "LastTransitionTime", - "Severity", - "Reason", - "RevisionReason", - "ExecutionReason", - "Reasons", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java deleted file mode 100644 index 370fcb9..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public interface GetRevisionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetRevisionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full name of the Revision.
-   * Format:
-   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full name of the Revision.
-   * Format:
-   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
-   * 
- * - * - * 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-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java deleted file mode 100644 index 4b26246..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.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/run/v2/service.proto - -package com.google.cloud.run.v2; - -public interface GetServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full name of the Service.
-   * Format: projects/{projectnumber}/locations/{location}/services/{service}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full name of the Service.
-   * Format: projects/{projectnumber}/locations/{location}/services/{service}
-   * 
- * - * - * 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-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java deleted file mode 100644 index 3e563eb..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ /dev/null @@ -1,252 +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/run/v2/k8s.min.proto - -package com.google.cloud.run.v2; - -public final class K8sMinProto { - private K8sMinProto() {} - - 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_run_v2_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_EnvVar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_EnvVarSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ContainerPort_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VolumeMount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VersionToPath_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CloudSqlInstance_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/run/v2/k8s.min.proto\022\023goo" - + "gle.cloud.run.v2\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\"\240\002\n" - + "\tContainer\022\014\n\004name\030\001 \001(\t\022\022\n\005image\030\002 \001(\tB" - + "\003\340A\002\022\017\n\007command\030\003 \003(\t\022\014\n\004args\030\004 \003(\t\022(\n\003e" - + "nv\030\005 \003(\0132\033.google.cloud.run.v2.EnvVar\022<\n" - + "\tresources\030\006 \001(\0132).google.cloud.run.v2.R" - + "esourceRequirements\0221\n\005ports\030\007 \003(\0132\".goo" - + "gle.cloud.run.v2.ContainerPort\0227\n\rvolume" - + "_mounts\030\010 \003(\0132 .google.cloud.run.v2.Volu" - + "meMount\"\236\001\n\024ResourceRequirements\022E\n\006limi" - + "ts\030\001 \003(\01325.google.cloud.run.v2.ResourceR" - + "equirements.LimitsEntry\022\020\n\010cpu_idle\030\002 \001(" - + "\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017\n" - + "\005value\030\002 \001(\tH\000\0229\n\014value_source\030\003 \001(\0132!.g" - + "oogle.cloud.run.v2.EnvVarSourceH\000B\010\n\006val" - + "ues\"N\n\014EnvVarSource\022>\n\016secret_key_ref\030\001 " - + "\001(\0132&.google.cloud.run.v2.SecretKeySelec" - + "tor\"\222\001\n\021SecretKeySelector\022;\n\006secret\030\001 \001(" - + "\tB+\340A\002\372A%\n#secretmanager.googleapis.com/" - + "Secret\022@\n\007version\030\002 \001(\tB/\372A,\n*secretmana" - + "ger.googleapis.com/SecretVersion\"5\n\rCont" - + "ainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container_por" - + "t\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volume\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.googl" - + "e.cloud.run.v2.SecretVolumeSourceH\000\022C\n\022c" - + "loud_sql_instance\030\003 \001(\0132%.google.cloud.r" - + "un.v2.CloudSqlInstanceH\000B\r\n\013volume_type\"" - + "r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(\tB\003\340" - + "A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run.v2." - + "VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"A\n\rV" - + "ersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007versi" - + "on\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlInstan" - + "ce\022\021\n\tinstances\030\001 \003(\tB\366\003\n\027com.google.clo" - + "ud.run.v2B\013K8sMinProtoP\001Z6google.golang." - + "org/genproto/googleapis/cloud/run/v2;run" - + "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" - + "projects/{project}/locations/{location}/" - + "keyRings/{key_ring}/cryptoKeys/{crypto_k" - + "ey}\352AJ\n#secretmanager.googleapis.com/Sec" - + "ret\022#projects/{project}/secrets/{secret}" - + "\352Ad\n*secretmanager.googleapis.com/Secret" - + "Version\0226projects/{project}/secrets/{sec" - + "ret}/versions/{version}\352Ad\n\"vpcaccess.go" - + "ogleapis.com/Connector\022>projects/{projec" - + "t}/locations/{location}/connectors/{conn" - + "ector}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_Container_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Container_descriptor, - new java.lang.String[] { - "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", - }); - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, - new java.lang.String[] { - "Limits", "CpuIdle", - }); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_EnvVar_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVar_descriptor, - new java.lang.String[] { - "Name", "Value", "ValueSource", "Values", - }); - internal_static_google_cloud_run_v2_EnvVarSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVarSource_descriptor, - new java.lang.String[] { - "SecretKeyRef", - }); - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, - new java.lang.String[] { - "Secret", "Version", - }); - internal_static_google_cloud_run_v2_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ContainerPort_descriptor, - new java.lang.String[] { - "Name", "ContainerPort", - }); - internal_static_google_cloud_run_v2_VolumeMount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VolumeMount_descriptor, - new java.lang.String[] { - "Name", "MountPath", - }); - internal_static_google_cloud_run_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Volume_descriptor, - new java.lang.String[] { - "Name", "Secret", "CloudSqlInstance", "VolumeType", - }); - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, - new java.lang.String[] { - "Secret", "Items", "DefaultMode", - }); - internal_static_google_cloud_run_v2_VersionToPath_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VersionToPath_descriptor, - new java.lang.String[] { - "Path", "Version", "Mode", - }); - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, - new java.lang.String[] { - "Instances", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java deleted file mode 100644 index 9e62e90..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,271 +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/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public final class RevisionProto { - private RevisionProto() {} - - 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_run_v2_GetRevisionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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/run/v2/revision.proto\022\023go" - + "ogle.cloud.run.v2\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\035google/api/la" - + "unch_stage.proto\032\031google/api/resource.pr" - + "oto\032\030google/api/routing.proto\032#google/cl" - + "oud/run/v2/condition.proto\032!google/cloud" - + "/run/v2/k8s.min.proto\032)google/cloud/run/" - + "v2/vendor_settings.proto\032#google/longrun" - + "ning/operations.proto\032\036google/protobuf/d" - + "uration.proto\032\037google/protobuf/timestamp" - + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" - + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" - + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" - + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" - + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" - + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" - + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" - + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" - + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" - + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" - + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" - + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" - + "(\0132).google.cloud.run.v2.Revision.Labels" - + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" - + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" - + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "expire_time\030\t \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" - + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" - + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" - + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" - + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" - + ".run.v2.VpcAccess\022(\n max_instance_reques" - + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" - + "oogle.protobuf.Duration\022\027\n\017service_accou" - + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" - + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." - + "google.cloud.run.v2.Volume\022H\n\025execution_" - + "environment\030\024 \001(\0162).google.cloud.run.v2." - + "ExecutionEnvironment\022>\n\016encryption_key\030\025" - + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" - + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" - + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" - + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" - + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" - + "is.com/Revision\022Oprojects/{project}/loca" - + "tions/{location}/services/{service}/revi" - + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" - + "tRevision\022\'.google.cloud.run.v2.GetRevis" - + "ionRequest\032\035.google.cloud.run.v2.Revisio" - + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" - + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" - + "e\022$projects/*/locations/{location=*}/**\332" - + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." - + "run.v2.ListRevisionsRequest\032*.google.clo" - + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" - + "8/v2/{parent=projects/*/locations/*/serv" - + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" - + "cts/*/locations/{location=*}/**\332A\006parent" - + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" - + "2.DeleteRevisionRequest\032\035.google.longrun" - + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" - + "cts/*/locations/*/services/*/revisions/*" - + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" - + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" - + "ion\032F\312A\022run.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformBb\n\027c" - + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" - + "6google.golang.org/genproto/googleapis/c" - + "loud/run/v2;runb\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.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ShowDeleted", - }); - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, - new java.lang.String[] { - "Revisions", "NextPageToken", - }); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_run_v2_Revision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Generation", - "Labels", - "Annotations", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExpireTime", - "LaunchStage", - "Service", - "Scaling", - "VpcAccess", - "MaxInstanceRequestConcurrency", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "ExecutionEnvironment", - "EncryptionKey", - "Reconciling", - "Conditions", - "ObservedGeneration", - "LogUri", - "Etag", - }); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - 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.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - 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.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java deleted file mode 100644 index b25c319..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ /dev/null @@ -1,136 +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/run/v2/revision_template.proto - -package com.google.cloud.run.v2; - -public final class RevisionTemplateProto { - private RevisionTemplateProto() {} - - 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_run_v2_RevisionTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_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/run/v2/revision_template." - + "proto\022\023google.cloud.run.v2\032\031google/api/r" - + "esource.proto\032!google/cloud/run/v2/k8s.m" - + "in.proto\032)google/cloud/run/v2/vendor_set" - + "tings.proto\032\036google/protobuf/duration.pr" - + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" - + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" - + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" - + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" - + " \003(\01326.google.cloud.run.v2.RevisionTempl" - + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." - + "google.cloud.run.v2.RevisionScaling\0222\n\nv" - + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" - + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" - + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" - + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" - + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" - + ".run.v2.Volume\022H\n\025execution_environment\030" - + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" - + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\022(\n max_" - + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" - + "B\025RevisionTemplateProtoP\001Z6google.golang" - + ".org/genproto/googleapis/cloud/run/v2;ru" - + "nb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, - new java.lang.String[] { - "Revision", - "Labels", - "Annotations", - "Scaling", - "VpcAccess", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "ExecutionEnvironment", - "EncryptionKey", - "MaxInstanceRequestConcurrency", - }); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java deleted file mode 100644 index 1325061..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,337 +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/run/v2/service.proto - -package com.google.cloud.run.v2; - -public final class ServiceProto { - private ServiceProto() {} - - 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_run_v2_CreateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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/run/v2/service.proto\022\023goo" - + "gle.cloud.run.v2\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\035google/api/lau" - + "nch_stage.proto\032\031google/api/resource.pro" - + "to\032\030google/api/routing.proto\032#google/clo" - + "ud/run/v2/condition.proto\032+google/cloud/" - + "run/v2/revision_template.proto\032(google/c" - + "loud/run/v2/traffic_target.proto\032)google" - + "/cloud/run/v2/vendor_settings.proto\032\036goo" - + "gle/iam/v1/iam_policy.proto\032\032google/iam/" - + "v1/policy.proto\032#google/longrunning/oper" - + "ations.proto\032\037google/protobuf/timestamp." - + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" - + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" - + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" - + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" - + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" - + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" - + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" - + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" - + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" - + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" - + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " - + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" - + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" - + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" - + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" - + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" - + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" - + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" - + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" - + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" - + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." - + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" - + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" - + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" - + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" - + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" - + ".google.api.LaunchStage\022F\n\024binary_author" - + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" - + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" - + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" - + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" - + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" - + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" - + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" - + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" - + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" - + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" - + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" - + ".googleapis.com/Revision\022G\n\020traffic_stat" - + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" - + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" - + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" - + ".com/Service\022:projects/{project}/locatio" - + "ns/{location}/services/{service}R\001\0012\267\r\n\010" - + "Services\022\375\001\n\rCreateService\022).google.clou" - + "d.run.v2.CreateServiceRequest\032\035.google.l" - + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" - + "nt=projects/*/locations/*}/services:\007ser" - + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" - + "ns/{location=*}\332A\031parent,service,service" - + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" - + "&.google.cloud.run.v2.GetServiceRequest\032" - + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" - + "v2/{name=projects/*/locations/*/services" - + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" - + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" - + "(.google.cloud.run.v2.ListServicesReques" - + "t\032).google.cloud.run.v2.ListServicesResp" - + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" - + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" - + "ects/*/locations/{location=*}\332A\006parent\022\374" - + "\001\n\rUpdateService\022).google.cloud.run.v2.U" - + "pdateServiceRequest\032\035.google.longrunning" - + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" - + "rojects/*/locations/*/services/*}:\007servi" - + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" - + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" - + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" - + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" - + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" - + "{name=projects/*/locations/*/services/*}" - + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" - + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" - + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" - + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" - + "\344\223\002?\022=/v2/{resource=projects/*/locations" - + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" - + "licy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" - + "source=projects/*/locations/*/services/*" - + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" - + "\022(.google.iam.v1.TestIamPermissionsReque" - + "st\032).google.iam.v1.TestIamPermissionsRes" - + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" - + "locations/*/services/*}:testIamPermissio" - + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBa\n" - + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" - + "Z6google.golang.org/genproto/googleapis/" - + "cloud/run/v2;runb\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.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, - new java.lang.String[] { - "Parent", "Service", "ServiceId", "ValidateOnly", - }); - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, - new java.lang.String[] { - "Service", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ShowDeleted", - }); - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, - new java.lang.String[] { - "Services", "NextPageToken", - }); - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_run_v2_Service_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_Service_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_descriptor, - new java.lang.String[] { - "Name", - "Description", - "Uid", - "Generation", - "Labels", - "Annotations", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExpireTime", - "Creator", - "LastModifier", - "Client", - "ClientVersion", - "Ingress", - "LaunchStage", - "BinaryAuthorization", - "Template", - "Traffic", - "ObservedGeneration", - "TerminalCondition", - "Conditions", - "LatestReadyRevision", - "LatestCreatedRevision", - "TrafficStatuses", - "Uri", - "Reconciling", - "Etag", - }); - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - 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.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - 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.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java deleted file mode 100644 index fba638e..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.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/run/v2/traffic_target.proto - -package com.google.cloud.run.v2; - -public final class TrafficTargetProto { - private TrafficTargetProto() {} - - 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_run_v2_TrafficTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TrafficTargetStatus_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/run/v2/traffic_target.pro" - + "to\022\023google.cloud.run.v2\032\031google/api/reso" - + "urce.proto\"\241\001\n\rTrafficTarget\022>\n\004type\030\001 \001" - + "(\01620.google.cloud.run.v2.TrafficTargetAl" - + "locationType\0222\n\010revision\030\002 \001(\tB \372A\035\n\033run" - + ".googleapis.com/Revision\022\017\n\007percent\030\003 \001(" - + "\005\022\013\n\003tag\030\004 \001(\t\"\264\001\n\023TrafficTargetStatus\022>" - + "\n\004type\030\001 \001(\01620.google.cloud.run.v2.Traff" - + "icTargetAllocationType\0222\n\010revision\030\002 \001(\t" - + "B \372A\035\n\033run.googleapis.com/Revision\022\017\n\007pe" - + "rcent\030\003 \001(\005\022\013\n\003tag\030\004 \001(\t\022\013\n\003uri\030\005 \001(\t*\245\001" - + "\n\033TrafficTargetAllocationType\022.\n*TRAFFIC" - + "_TARGET_ALLOCATION_TYPE_UNSPECIFIED\020\000\022)\n" - + "%TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\020\001" - + "\022+\n\'TRAFFIC_TARGET_ALLOCATION_TYPE_REVIS" - + "ION\020\002Bg\n\027com.google.cloud.run.v2B\022Traffi" - + "cTargetProtoP\001Z6google.golang.org/genpro" - + "to/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_TrafficTarget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TrafficTarget_descriptor, - new java.lang.String[] { - "Type", "Revision", "Percent", "Tag", - }); - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor, - new java.lang.String[] { - "Type", "Revision", "Percent", "Tag", "Uri", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java deleted file mode 100644 index 5bd17cb..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,113 +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/run/v2/vendor_settings.proto - -package com.google.cloud.run.v2; - -public final class VendorSettingsProto { - private VendorSettingsProto() {} - - 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_run_v2_VpcAccess_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionScaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionScaling_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/run/v2/vendor_settings.pr" - + "oto\022\023google.cloud.run.v2\032\031google/api/res" - + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" - + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" - + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" - + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" - + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" - + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" - + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" - + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" - + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" - + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" - + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" - + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" - + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" - + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" - + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" - + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" - + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" - + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" - + "ttingsProtoP\001Z6google.golang.org/genprot" - + "o/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_VpcAccess_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VpcAccess_descriptor, - new java.lang.String[] { - "Connector", "Egress", - }); - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, - new java.lang.String[] { - "UseDefault", "BreakglassJustification", "BinauthzMethod", - }); - internal_static_google_cloud_run_v2_RevisionScaling_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionScaling_descriptor, - new java.lang.String[] { - "MinInstanceCount", "MaxInstanceCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 986c71caf2ca512486ab032648ec4a24583b5cb0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:09:25 +0000 Subject: [PATCH 2/4] =?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/run/v2/RevisionsClient.java | 16 +- .../cloud/run/v2/RevisionsSettings.java | 7 +- .../google/cloud/run/v2/ServicesClient.java | 16 +- .../google/cloud/run/v2/ServicesSettings.java | 7 +- .../google/cloud/run/v2/gapic_metadata.json | 0 .../com/google/cloud/run/v2/package-info.java | 0 .../v2/stub/GrpcRevisionsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcRevisionsStub.java | 1 - .../v2/stub/GrpcServicesCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcServicesStub.java | 1 - .../HttpJsonRevisionsCallableFactory.java | 0 .../run/v2/stub/HttpJsonRevisionsStub.java | 1 - .../stub/HttpJsonServicesCallableFactory.java | 0 .../run/v2/stub/HttpJsonServicesStub.java | 1 - .../cloud/run/v2/stub/RevisionsStub.java | 0 .../run/v2/stub/RevisionsStubSettings.java | 6 +- .../cloud/run/v2/stub/ServicesStub.java | 0 .../run/v2/stub/ServicesStubSettings.java | 6 +- .../google/cloud/run/v2/MockRevisions.java | 0 .../cloud/run/v2/MockRevisionsImpl.java | 0 .../com/google/cloud/run/v2/MockServices.java | 0 .../google/cloud/run/v2/MockServicesImpl.java | 0 .../run/v2/RevisionsClientHttpJsonTest.java | 0 .../cloud/run/v2/RevisionsClientTest.java | 0 .../run/v2/ServicesClientHttpJsonTest.java | 0 .../cloud/run/v2/ServicesClientTest.java | 0 .../google/cloud/run/v2/RevisionsGrpc.java | 577 +++ .../com/google/cloud/run/v2/ServicesGrpc.java | 1136 ++++++ .../google/cloud/run/v2/RevisionsGrpc.java | 475 --- .../com/google/cloud/run/v2/ServicesGrpc.java | 925 ----- .../google/cloud/run/v2/ConditionProto.java | 90 - .../run/v2/GetRevisionRequestOrBuilder.java | 33 - .../run/v2/GetServiceRequestOrBuilder.java | 31 - .../com/google/cloud/run/v2/K8sMinProto.java | 226 -- .../google/cloud/run/v2/RevisionProto.java | 226 -- .../cloud/run/v2/RevisionTemplateProto.java | 108 - .../com/google/cloud/run/v2/ServiceProto.java | 287 -- .../cloud/run/v2/TrafficTargetProto.java | 81 - .../cloud/run/v2/VendorSettingsProto.java | 96 - .../cloud/run/v2/BinaryAuthorization.java | 391 +- .../run/v2/BinaryAuthorizationOrBuilder.java | 33 +- .../google/cloud/run/v2/CloudSqlInstance.java | 330 +- .../run/v2/CloudSqlInstanceOrBuilder.java | 36 +- .../com/google/cloud/run/v2/Condition.java | 1344 ++++--- .../cloud/run/v2/ConditionOrBuilder.java | 83 +- .../google/cloud/run/v2/ConditionProto.java | 113 + .../com/google/cloud/run/v2/Container.java | 1144 ++++-- .../cloud/run/v2/ContainerOrBuilder.java | 136 +- .../google/cloud/run/v2/ContainerPort.java | 331 +- .../cloud/run/v2/ContainerPortOrBuilder.java | 30 +- .../cloud/run/v2/CreateServiceRequest.java | 569 +-- .../run/v2/CreateServiceRequestOrBuilder.java | 64 +- .../cloud/run/v2/DeleteRevisionRequest.java | 445 ++- .../v2/DeleteRevisionRequestOrBuilder.java | 47 +- .../cloud/run/v2/DeleteServiceRequest.java | 445 ++- .../run/v2/DeleteServiceRequestOrBuilder.java | 47 +- .../java/com/google/cloud/run/v2/EnvVar.java | 536 +-- .../google/cloud/run/v2/EnvVarOrBuilder.java | 47 +- .../com/google/cloud/run/v2/EnvVarSource.java | 318 +- .../cloud/run/v2/EnvVarSourceOrBuilder.java | 26 +- .../cloud/run/v2/ExecutionEnvironment.java | 77 +- .../cloud/run/v2/GetRevisionRequest.java | 329 +- .../run/v2/GetRevisionRequestOrBuilder.java | 58 + .../cloud/run/v2/GetServiceRequest.java | 329 +- .../run/v2/GetServiceRequestOrBuilder.java | 56 + .../google/cloud/run/v2/IngressTraffic.java | 89 +- .../com/google/cloud/run/v2/K8sMinProto.java | 252 ++ .../cloud/run/v2/ListRevisionsRequest.java | 479 ++- .../run/v2/ListRevisionsRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListRevisionsResponse.java | 448 ++- .../v2/ListRevisionsResponseOrBuilder.java | 46 +- .../cloud/run/v2/ListServicesRequest.java | 479 ++- .../run/v2/ListServicesRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListServicesResponse.java | 454 ++- .../run/v2/ListServicesResponseOrBuilder.java | 46 +- .../com/google/cloud/run/v2/LocationName.java | 0 .../cloud/run/v2/ResourceRequirements.java | 526 +-- .../run/v2/ResourceRequirementsOrBuilder.java | 52 +- .../com/google/cloud/run/v2/Revision.java | 2941 ++++++++------ .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 344 +- .../google/cloud/run/v2/RevisionProto.java | 271 ++ .../google/cloud/run/v2/RevisionScaling.java | 290 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1648 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 178 +- .../cloud/run/v2/RevisionTemplateProto.java | 136 + .../cloud/run/v2/SecretKeySelector.java | 408 +- .../run/v2/SecretKeySelectorOrBuilder.java | 44 +- .../cloud/run/v2/SecretVolumeSource.java | 483 ++- .../run/v2/SecretVolumeSourceOrBuilder.java | 49 +- .../java/com/google/cloud/run/v2/Service.java | 3423 +++++++++++------ .../com/google/cloud/run/v2/ServiceName.java | 0 .../google/cloud/run/v2/ServiceOrBuilder.java | 427 +- .../com/google/cloud/run/v2/ServiceProto.java | 337 ++ .../google/cloud/run/v2/TrafficTarget.java | 484 ++- .../run/v2/TrafficTargetAllocationType.java | 77 +- .../cloud/run/v2/TrafficTargetOrBuilder.java | 45 +- .../cloud/run/v2/TrafficTargetProto.java | 97 + .../cloud/run/v2/TrafficTargetStatus.java | 567 +-- .../run/v2/TrafficTargetStatusOrBuilder.java | 54 +- .../cloud/run/v2/UpdateServiceRequest.java | 423 +- .../run/v2/UpdateServiceRequestOrBuilder.java | 41 +- .../cloud/run/v2/VendorSettingsProto.java | 113 + .../google/cloud/run/v2/VersionToPath.java | 410 +- .../cloud/run/v2/VersionToPathOrBuilder.java | 39 +- .../java/com/google/cloud/run/v2/Volume.java | 543 ++- .../com/google/cloud/run/v2/VolumeMount.java | 373 +- .../cloud/run/v2/VolumeMountOrBuilder.java | 36 +- .../google/cloud/run/v2/VolumeOrBuilder.java | 43 +- .../com/google/cloud/run/v2/VpcAccess.java | 414 +- .../cloud/run/v2/VpcAccessOrBuilder.java | 33 +- .../proto/google/cloud/run/v2/condition.proto | 0 .../proto/google/cloud/run/v2/k8s.min.proto | 0 .../proto/google/cloud/run/v2/revision.proto | 0 .../cloud/run/v2/revision_template.proto | 0 .../proto/google/cloud/run/v2/service.proto | 0 .../google/cloud/run/v2/traffic_target.proto | 0 .../google/cloud/run/v2/vendor_settings.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../deleterevision/AsyncDeleteRevision.java | 0 .../AsyncDeleteRevisionLRO.java | 0 .../deleterevision/SyncDeleteRevision.java | 0 .../SyncDeleteRevisionRevisionname.java | 0 .../SyncDeleteRevisionString.java | 0 .../getrevision/AsyncGetRevision.java | 0 .../getrevision/SyncGetRevision.java | 0 .../SyncGetRevisionRevisionname.java | 0 .../getrevision/SyncGetRevisionString.java | 0 .../listrevisions/AsyncListRevisions.java | 0 .../AsyncListRevisionsPaged.java | 0 .../listrevisions/SyncListRevisions.java | 0 .../SyncListRevisionsServicename.java | 0 .../SyncListRevisionsString.java | 0 .../getrevision/SyncGetRevision.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createservice/AsyncCreateService.java | 0 .../createservice/AsyncCreateServiceLRO.java | 0 .../createservice/SyncCreateService.java | 0 ...reateServiceLocationnameServiceString.java | 0 .../SyncCreateServiceStringServiceString.java | 0 .../deleteservice/AsyncDeleteService.java | 0 .../deleteservice/AsyncDeleteServiceLRO.java | 0 .../deleteservice/SyncDeleteService.java | 0 .../SyncDeleteServiceServicename.java | 0 .../SyncDeleteServiceString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getservice/AsyncGetService.java | 0 .../getservice/SyncGetService.java | 0 .../getservice/SyncGetServiceServicename.java | 0 .../getservice/SyncGetServiceString.java | 0 .../listservices/AsyncListServices.java | 0 .../listservices/AsyncListServicesPaged.java | 0 .../listservices/SyncListServices.java | 0 .../SyncListServicesLocationname.java | 0 .../listservices/SyncListServicesString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updateservice/AsyncUpdateService.java | 0 .../updateservice/AsyncUpdateServiceLRO.java | 0 .../updateservice/SyncUpdateService.java | 0 .../SyncUpdateServiceService.java | 0 .../getservice/SyncGetService.java | 0 .../getrevision/SyncGetRevision.java | 0 .../getservice/SyncGetService.java | 0 172 files changed, 18046 insertions(+), 11437 deletions(-) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (98%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java (96%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesClient.java (98%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesSettings.java (97%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java (99%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java (99%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java (99%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java (99%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java (98%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockRevisions.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockServices.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java (100%) create mode 100644 grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java create mode 100644 grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Condition.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java (84%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Container.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java (88%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerPort.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVar.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarSource.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java (66%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java (65%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/IngressTraffic.java (68%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Revision.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java (81%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionScaling.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java (80%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java (83%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Service.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ServiceName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java (80%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTarget.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java (69%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java (64%) create mode 100644 proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VersionToPath.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/Volume.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeMount.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VpcAccess.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/condition.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/k8s.min.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/revision.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/revision_template.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/service.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/traffic_target.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-run-v2 => proto-google-cloud-run-v2}/src/main/proto/google/cloud/run/v2/vendor_settings.proto (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java (100%) diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java index 5111f09..66c447e 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java @@ -59,13 +59,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. *
* @@ -609,7 +609,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListRevisionsPagedResponse extends AbstractPagedListResponse< - ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage, + ListRevisionsRequest, + ListRevisionsResponse, + Revision, + ListRevisionsPage, ListRevisionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -659,7 +662,10 @@ public ApiFuture createPageAsync( public static class ListRevisionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage, + ListRevisionsRequest, + ListRevisionsResponse, + Revision, + ListRevisionsPage, ListRevisionsFixedSizeCollection> { private ListRevisionsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java similarity index 96% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index 906f8ff..c89ef86 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.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.run.v2.stub.RevisionsStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 12826d9..0d10699 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -64,13 +64,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. *
* @@ -1032,7 +1032,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListServicesPagedResponse extends AbstractPagedListResponse< - ListServicesRequest, ListServicesResponse, Service, ListServicesPage, + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, ListServicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1081,7 +1084,10 @@ public ApiFuture createPageAsync( public static class ListServicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServicesRequest, ListServicesResponse, Service, ListServicesPage, + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, ListServicesFixedSizeCollection> { private ListServicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java similarity index 97% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index 60d5c94..9433cf1 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.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.run.v2.stub.ServicesStubSettings; @@ -50,9 +49,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java index 8369429..6f89f0c 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java @@ -37,7 +37,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-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java index 0133af0..f2fe4eb 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java @@ -45,7 +45,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-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java index 3f9e872..c01acd4 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.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-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java index 367ff9c..e339e7d 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.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-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java index 0c11a0f..af7f5b1 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java @@ -69,9 +69,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java rename to google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java index bc02383..2abf68f 100644 --- a/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java @@ -76,9 +76,9 @@ *

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

    - *
  • The default service address (run.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 default service address (run.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 diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java rename to google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java diff --git a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java new file mode 100644 index 0000000..287d926 --- /dev/null +++ b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java @@ -0,0 +1,577 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Cloud Run Revision Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/revision.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RevisionsGrpc { + + private RevisionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Revisions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> + getGetRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRevision", + requestType = com.google.cloud.run.v2.GetRevisionRequest.class, + responseType = com.google.cloud.run.v2.Revision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> + getGetRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision> + getGetRevisionMethod; + if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { + RevisionsGrpc.getGetRevisionMethod = + getGetRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Revision.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("GetRevision")) + .build(); + } + } + } + return getGetRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListRevisionsRequest, + com.google.cloud.run.v2.ListRevisionsResponse> + getListRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRevisions", + requestType = com.google.cloud.run.v2.ListRevisionsRequest.class, + responseType = com.google.cloud.run.v2.ListRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListRevisionsRequest, + com.google.cloud.run.v2.ListRevisionsResponse> + getListRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListRevisionsRequest, + com.google.cloud.run.v2.ListRevisionsResponse> + getListRevisionsMethod; + if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { + RevisionsGrpc.getListRevisionsMethod = + getListRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("ListRevisions")) + .build(); + } + } + } + return getListRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> + getDeleteRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRevision", + requestType = com.google.cloud.run.v2.DeleteRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> + getDeleteRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteRevisionRequest, com.google.longrunning.Operation> + getDeleteRevisionMethod; + if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { + synchronized (RevisionsGrpc.class) { + if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { + RevisionsGrpc.getDeleteRevisionMethod = + getDeleteRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("DeleteRevision")) + .build(); + } + } + } + return getDeleteRevisionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static RevisionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsStub(channel, callOptions); + } + }; + return RevisionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RevisionsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsBlockingStub(channel, callOptions); + } + }; + return RevisionsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RevisionsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RevisionsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsFutureStub(channel, callOptions); + } + }; + return RevisionsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public abstract static class RevisionsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Gets information about a Revision.
+     * 
+ */ + public void getRevision( + com.google.cloud.run.v2.GetRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public void listRevisions( + com.google.cloud.run.v2.ListRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a Revision.
+     * 
+ */ + public void deleteRevision( + com.google.cloud.run.v2.DeleteRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRevisionMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetRevisionRequest, com.google.cloud.run.v2.Revision>( + this, METHODID_GET_REVISION))) + .addMethod( + getListRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListRevisionsRequest, + com.google.cloud.run.v2.ListRevisionsResponse>( + this, METHODID_LIST_REVISIONS))) + .addMethod( + getDeleteRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteRevisionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_REVISION))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsStub extends io.grpc.stub.AbstractAsyncStub { + private RevisionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Revision.
+     * 
+ */ + public void getRevision( + com.google.cloud.run.v2.GetRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public void listRevisions( + com.google.cloud.run.v2.ListRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a Revision.
+     * 
+ */ + public void deleteRevision( + com.google.cloud.run.v2.DeleteRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RevisionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Revision.
+     * 
+ */ + public com.google.cloud.run.v2.Revision getRevision( + com.google.cloud.run.v2.GetRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public com.google.cloud.run.v2.ListRevisionsResponse listRevisions( + com.google.cloud.run.v2.ListRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a Revision.
+     * 
+ */ + public com.google.longrunning.Operation deleteRevision( + com.google.cloud.run.v2.DeleteRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRevisionMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Run Revision Control Plane API.
+   * 
+ */ + public static final class RevisionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RevisionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RevisionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RevisionsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRevision(com.google.cloud.run.v2.GetRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List Revisions from a given Service, or from a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.run.v2.ListRevisionsResponse> + listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a Revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_REVISION = 0; + private static final int METHODID_LIST_REVISIONS = 1; + private static final int METHODID_DELETE_REVISION = 2; + + 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 RevisionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(RevisionsImplBase 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_REVISION: + serviceImpl.getRevision( + (com.google.cloud.run.v2.GetRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_REVISIONS: + serviceImpl.listRevisions( + (com.google.cloud.run.v2.ListRevisionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_REVISION: + serviceImpl.deleteRevision( + (com.google.cloud.run.v2.DeleteRevisionRequest) 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 RevisionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RevisionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.RevisionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Revisions"); + } + } + + private static final class RevisionsFileDescriptorSupplier + extends RevisionsBaseDescriptorSupplier { + RevisionsFileDescriptorSupplier() {} + } + + private static final class RevisionsMethodDescriptorSupplier + extends RevisionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + RevisionsMethodDescriptorSupplier(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 (RevisionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RevisionsFileDescriptorSupplier()) + .addMethod(getGetRevisionMethod()) + .addMethod(getListRevisionsMethod()) + .addMethod(getDeleteRevisionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java new file mode 100644 index 0000000..fe875c8 --- /dev/null +++ b/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Cloud Run Service Control Plane API
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServicesGrpc { + + private ServicesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Services"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> + getCreateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateService", + requestType = com.google.cloud.run.v2.CreateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> + getCreateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateServiceRequest, com.google.longrunning.Operation> + getCreateServiceMethod; + if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { + ServicesGrpc.getCreateServiceMethod = + getCreateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.CreateServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("CreateService")) + .build(); + } + } + } + return getCreateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> + getGetServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetService", + requestType = com.google.cloud.run.v2.GetServiceRequest.class, + responseType = com.google.cloud.run.v2.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> + getGetServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service> + getGetServiceMethod; + if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { + ServicesGrpc.getGetServiceMethod = + getGetServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Service.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("GetService")) + .build(); + } + } + } + return getGetServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListServicesRequest, com.google.cloud.run.v2.ListServicesResponse> + getListServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServices", + requestType = com.google.cloud.run.v2.ListServicesRequest.class, + responseType = com.google.cloud.run.v2.ListServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListServicesRequest, com.google.cloud.run.v2.ListServicesResponse> + getListServicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListServicesRequest, + com.google.cloud.run.v2.ListServicesResponse> + getListServicesMethod; + if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { + ServicesGrpc.getListServicesMethod = + getListServicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListServicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("ListServices")) + .build(); + } + } + } + return getListServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> + getUpdateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateService", + requestType = com.google.cloud.run.v2.UpdateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> + getUpdateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateServiceRequest, com.google.longrunning.Operation> + getUpdateServiceMethod; + if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { + ServicesGrpc.getUpdateServiceMethod = + getUpdateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.UpdateServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("UpdateService")) + .build(); + } + } + } + return getUpdateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> + getDeleteServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteService", + requestType = com.google.cloud.run.v2.DeleteServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> + getDeleteServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteServiceRequest, com.google.longrunning.Operation> + getDeleteServiceMethod; + if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { + ServicesGrpc.getDeleteServiceMethod = + getDeleteServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("DeleteService")) + .build(); + } + } + } + return getDeleteServiceMethod; + } + + 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< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + 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< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + 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< + 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 = ServicesGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ServicesGrpc.class) { + if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { + ServicesGrpc.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 ServicesMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ServicesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesStub(channel, callOptions); + } + }; + return ServicesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServicesBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesBlockingStub(channel, callOptions); + } + }; + return ServicesBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ServicesFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServicesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesFutureStub(channel, callOptions); + } + }; + return ServicesFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public abstract static class ServicesImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public void createService( + com.google.cloud.run.v2.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about a Service.
+     * 
+ */ + public void getService( + com.google.cloud.run.v2.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * List Services.
+     * 
+ */ + public void listServices( + com.google.cloud.run.v2.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a Service.
+     * 
+ */ + public void updateService( + com.google.cloud.run.v2.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public void deleteService( + com.google.cloud.run.v2.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.CreateServiceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SERVICE))) + .addMethod( + getGetServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetServiceRequest, com.google.cloud.run.v2.Service>( + this, METHODID_GET_SERVICE))) + .addMethod( + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListServicesRequest, + com.google.cloud.run.v2.ListServicesResponse>(this, METHODID_LIST_SERVICES))) + .addMethod( + getUpdateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.UpdateServiceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SERVICE))) + .addMethod( + getDeleteServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteServiceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SERVICE))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_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))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesStub extends io.grpc.stub.AbstractAsyncStub { + private ServicesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public void createService( + com.google.cloud.run.v2.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about a Service.
+     * 
+ */ + public void getService( + com.google.cloud.run.v2.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List Services.
+     * 
+ */ + public void listServices( + com.google.cloud.run.v2.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a Service.
+     * 
+ */ + public void updateService( + com.google.cloud.run.v2.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public void deleteService( + com.google.cloud.run.v2.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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); + } + } + + /** + * + * + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServicesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createService( + com.google.cloud.run.v2.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets information about a Service.
+     * 
+ */ + public com.google.cloud.run.v2.Service getService( + com.google.cloud.run.v2.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List Services.
+     * 
+ */ + public com.google.cloud.run.v2.ListServicesResponse listServices( + com.google.cloud.run.v2.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a Service.
+     * 
+ */ + public com.google.longrunning.Operation updateService( + com.google.cloud.run.v2.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public com.google.longrunning.Operation deleteService( + com.google.cloud.run.v2.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Run Service Control Plane API
+   * 
+ */ + public static final class ServicesFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServicesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServicesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServicesFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createService(com.google.cloud.run.v2.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about a Service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getService(com.google.cloud.run.v2.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List Services.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.run.v2.ListServicesResponse> + listServices(com.google.cloud.run.v2.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a Service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateService(com.google.cloud.run.v2.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Service.
+     * This will cause the Service to stop serving traffic and will delete all
+     * revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteService(com.google.cloud.run.v2.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given
+     * Cloud Run Service. This result does not include any inherited policies.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Sets the IAM Access control policy for the specified Service. Overwrites
+     * any existing policy.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified Project.
+     * There are no permissions required for making this API call.
+     * 
+ */ + 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); + } + } + + private static final int METHODID_CREATE_SERVICE = 0; + private static final int METHODID_GET_SERVICE = 1; + private static final int METHODID_LIST_SERVICES = 2; + private static final int METHODID_UPDATE_SERVICE = 3; + private static final int METHODID_DELETE_SERVICE = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 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 ServicesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ServicesImplBase 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_CREATE_SERVICE: + serviceImpl.createService( + (com.google.cloud.run.v2.CreateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVICE: + serviceImpl.getService( + (com.google.cloud.run.v2.GetServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVICES: + serviceImpl.listServices( + (com.google.cloud.run.v2.ListServicesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SERVICE: + serviceImpl.updateService( + (com.google.cloud.run.v2.UpdateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE: + serviceImpl.deleteService( + (com.google.cloud.run.v2.DeleteServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) 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); + 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 ServicesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServicesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Services"); + } + } + + private static final class ServicesFileDescriptorSupplier extends ServicesBaseDescriptorSupplier { + ServicesFileDescriptorSupplier() {} + } + + private static final class ServicesMethodDescriptorSupplier extends ServicesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ServicesMethodDescriptorSupplier(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 (ServicesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServicesFileDescriptorSupplier()) + .addMethod(getCreateServiceMethod()) + .addMethod(getGetServiceMethod()) + .addMethod(getListServicesMethod()) + .addMethod(getUpdateServiceMethod()) + .addMethod(getDeleteServiceMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java deleted file mode 100644 index f1afaa1..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java +++ /dev/null @@ -1,475 +0,0 @@ -package com.google.cloud.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Run Revision Control Plane API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/revision.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RevisionsGrpc { - - private RevisionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Revisions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetRevisionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRevision", - requestType = com.google.cloud.run.v2.GetRevisionRequest.class, - responseType = com.google.cloud.run.v2.Revision.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRevisionMethod() { - io.grpc.MethodDescriptor getGetRevisionMethod; - if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getGetRevisionMethod = RevisionsGrpc.getGetRevisionMethod) == null) { - RevisionsGrpc.getGetRevisionMethod = getGetRevisionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRevision")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetRevisionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Revision.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("GetRevision")) - .build(); - } - } - } - return getGetRevisionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRevisionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRevisions", - requestType = com.google.cloud.run.v2.ListRevisionsRequest.class, - responseType = com.google.cloud.run.v2.ListRevisionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRevisionsMethod() { - io.grpc.MethodDescriptor getListRevisionsMethod; - if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getListRevisionsMethod = RevisionsGrpc.getListRevisionsMethod) == null) { - RevisionsGrpc.getListRevisionsMethod = getListRevisionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRevisions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListRevisionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListRevisionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("ListRevisions")) - .build(); - } - } - } - return getListRevisionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRevisionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRevision", - requestType = com.google.cloud.run.v2.DeleteRevisionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRevisionMethod() { - io.grpc.MethodDescriptor getDeleteRevisionMethod; - if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { - synchronized (RevisionsGrpc.class) { - if ((getDeleteRevisionMethod = RevisionsGrpc.getDeleteRevisionMethod) == null) { - RevisionsGrpc.getDeleteRevisionMethod = getDeleteRevisionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRevision")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteRevisionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new RevisionsMethodDescriptorSupplier("DeleteRevision")) - .build(); - } - } - } - return getDeleteRevisionMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static RevisionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsStub(channel, callOptions); - } - }; - return RevisionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RevisionsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsBlockingStub(channel, callOptions); - } - }; - return RevisionsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RevisionsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RevisionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsFutureStub(channel, callOptions); - } - }; - return RevisionsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static abstract class RevisionsImplBase implements io.grpc.BindableService { - - /** - *
-     * Gets information about a Revision.
-     * 
- */ - public void getRevision(com.google.cloud.run.v2.GetRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRevisionMethod(), responseObserver); - } - - /** - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public void listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRevisionsMethod(), responseObserver); - } - - /** - *
-     * Delete a Revision.
-     * 
- */ - public void deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRevisionMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetRevisionRequest, - com.google.cloud.run.v2.Revision>( - this, METHODID_GET_REVISION))) - .addMethod( - getListRevisionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListRevisionsRequest, - com.google.cloud.run.v2.ListRevisionsResponse>( - this, METHODID_LIST_REVISIONS))) - .addMethod( - getDeleteRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteRevisionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_REVISION))) - .build(); - } - } - - /** - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsStub extends io.grpc.stub.AbstractAsyncStub { - private RevisionsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Revision.
-     * 
- */ - public void getRevision(com.google.cloud.run.v2.GetRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public void listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a Revision.
-     * 
- */ - public void deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private RevisionsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsBlockingStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Revision.
-     * 
- */ - public com.google.cloud.run.v2.Revision getRevision(com.google.cloud.run.v2.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRevisionMethod(), getCallOptions(), request); - } - - /** - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public com.google.cloud.run.v2.ListRevisionsResponse listRevisions(com.google.cloud.run.v2.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRevisionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a Revision.
-     * 
- */ - public com.google.longrunning.Operation deleteRevision(com.google.cloud.run.v2.DeleteRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRevisionMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Run Revision Control Plane API.
-   * 
- */ - public static final class RevisionsFutureStub extends io.grpc.stub.AbstractFutureStub { - private RevisionsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RevisionsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RevisionsFutureStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Revision.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRevision( - com.google.cloud.run.v2.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRevisionMethod(), getCallOptions()), request); - } - - /** - *
-     * List Revisions from a given Service, or from a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRevisions( - com.google.cloud.run.v2.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRevisionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a Revision.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRevision( - com.google.cloud.run.v2.DeleteRevisionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRevisionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_REVISION = 0; - private static final int METHODID_LIST_REVISIONS = 1; - private static final int METHODID_DELETE_REVISION = 2; - - 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 RevisionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(RevisionsImplBase 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_REVISION: - serviceImpl.getRevision((com.google.cloud.run.v2.GetRevisionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REVISIONS: - serviceImpl.listRevisions((com.google.cloud.run.v2.ListRevisionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REVISION: - serviceImpl.deleteRevision((com.google.cloud.run.v2.DeleteRevisionRequest) 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 RevisionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RevisionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.RevisionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Revisions"); - } - } - - private static final class RevisionsFileDescriptorSupplier - extends RevisionsBaseDescriptorSupplier { - RevisionsFileDescriptorSupplier() {} - } - - private static final class RevisionsMethodDescriptorSupplier - extends RevisionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - RevisionsMethodDescriptorSupplier(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 (RevisionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RevisionsFileDescriptorSupplier()) - .addMethod(getGetRevisionMethod()) - .addMethod(getListRevisionsMethod()) - .addMethod(getDeleteRevisionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java deleted file mode 100644 index 1d320c9..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java +++ /dev/null @@ -1,925 +0,0 @@ -package com.google.cloud.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Run Service Control Plane API
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServicesGrpc { - - private ServicesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Services"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateService", - requestType = com.google.cloud.run.v2.CreateServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceMethod() { - io.grpc.MethodDescriptor getCreateServiceMethod; - if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getCreateServiceMethod = ServicesGrpc.getCreateServiceMethod) == null) { - ServicesGrpc.getCreateServiceMethod = getCreateServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.CreateServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("CreateService")) - .build(); - } - } - } - return getCreateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetService", - requestType = com.google.cloud.run.v2.GetServiceRequest.class, - responseType = com.google.cloud.run.v2.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetServiceMethod() { - io.grpc.MethodDescriptor getGetServiceMethod; - if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) { - ServicesGrpc.getGetServiceMethod = getGetServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Service.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("GetService")) - .build(); - } - } - } - return getGetServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.run.v2.ListServicesRequest.class, - responseType = com.google.cloud.run.v2.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListServicesMethod() { - io.grpc.MethodDescriptor getListServicesMethod; - if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) { - ServicesGrpc.getListServicesMethod = getListServicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListServicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListServicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("ListServices")) - .build(); - } - } - } - return getListServicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateService", - requestType = com.google.cloud.run.v2.UpdateServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateServiceMethod() { - io.grpc.MethodDescriptor getUpdateServiceMethod; - if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) { - ServicesGrpc.getUpdateServiceMethod = getUpdateServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.UpdateServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("UpdateService")) - .build(); - } - } - } - return getUpdateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteService", - requestType = com.google.cloud.run.v2.DeleteServiceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteServiceMethod() { - io.grpc.MethodDescriptor getDeleteServiceMethod; - if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) { - ServicesGrpc.getDeleteServiceMethod = getDeleteServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ServicesMethodDescriptorSupplier("DeleteService")) - .build(); - } - } - } - return getDeleteServiceMethod; - } - - 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 getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getGetIamPolicyMethod = ServicesGrpc.getGetIamPolicyMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - 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 getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getSetIamPolicyMethod = ServicesGrpc.getSetIamPolicyMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - 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 getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ServicesGrpc.class) { - if ((getTestIamPermissionsMethod = ServicesGrpc.getTestIamPermissionsMethod) == null) { - ServicesGrpc.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 ServicesMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ServicesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesStub(channel, callOptions); - } - }; - return ServicesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServicesBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesBlockingStub(channel, callOptions); - } - }; - return ServicesBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ServicesFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServicesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesFutureStub(channel, callOptions); - } - }; - return ServicesFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static abstract class ServicesImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public void createService(com.google.cloud.run.v2.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); - } - - /** - *
-     * Gets information about a Service.
-     * 
- */ - public void getService(com.google.cloud.run.v2.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); - } - - /** - *
-     * List Services.
-     * 
- */ - public void listServices(com.google.cloud.run.v2.ListServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); - } - - /** - *
-     * Updates a Service.
-     * 
- */ - public void updateService(com.google.cloud.run.v2.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); - } - - /** - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public void deleteService(com.google.cloud.run.v2.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.CreateServiceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SERVICE))) - .addMethod( - getGetServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetServiceRequest, - com.google.cloud.run.v2.Service>( - this, METHODID_GET_SERVICE))) - .addMethod( - getListServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListServicesRequest, - com.google.cloud.run.v2.ListServicesResponse>( - this, METHODID_LIST_SERVICES))) - .addMethod( - getUpdateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.UpdateServiceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SERVICE))) - .addMethod( - getDeleteServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteServiceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SERVICE))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_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))) - .build(); - } - } - - /** - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesStub extends io.grpc.stub.AbstractAsyncStub { - private ServicesStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesStub(channel, callOptions); - } - - /** - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public void createService(com.google.cloud.run.v2.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about a Service.
-     * 
- */ - public void getService(com.google.cloud.run.v2.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List Services.
-     * 
- */ - public void listServices(com.google.cloud.run.v2.ListServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a Service.
-     * 
- */ - public void updateService(com.google.cloud.run.v2.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public void deleteService(com.google.cloud.run.v2.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - 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); - } - - /** - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - 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); - } - - /** - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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); - } - } - - /** - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ServicesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createService(com.google.cloud.run.v2.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets information about a Service.
-     * 
- */ - public com.google.cloud.run.v2.Service getService(com.google.cloud.run.v2.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * List Services.
-     * 
- */ - public com.google.cloud.run.v2.ListServicesResponse listServices(com.google.cloud.run.v2.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a Service.
-     * 
- */ - public com.google.longrunning.Operation updateService(com.google.cloud.run.v2.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public com.google.longrunning.Operation deleteService(com.google.cloud.run.v2.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Run Service Control Plane API
-   * 
- */ - public static final class ServicesFutureStub extends io.grpc.stub.AbstractFutureStub { - private ServicesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServicesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServicesFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new Service in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createService( - com.google.cloud.run.v2.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets information about a Service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getService( - com.google.cloud.run.v2.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * List Services.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listServices( - com.google.cloud.run.v2.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a Service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateService( - com.google.cloud.run.v2.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Service.
-     * This will cause the Service to stop serving traffic and will delete all
-     * revisions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteService( - com.google.cloud.run.v2.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given
-     * Cloud Run Service. This result does not include any inherited policies.
-     * 
- */ - 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); - } - - /** - *
-     * Sets the IAM Access control policy for the specified Service. Overwrites
-     * any existing policy.
-     * 
- */ - 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); - } - - /** - *
-     * Returns permissions that a caller has on the specified Project.
-     * There are no permissions required for making this API call.
-     * 
- */ - 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); - } - } - - private static final int METHODID_CREATE_SERVICE = 0; - private static final int METHODID_GET_SERVICE = 1; - private static final int METHODID_LIST_SERVICES = 2; - private static final int METHODID_UPDATE_SERVICE = 3; - private static final int METHODID_DELETE_SERVICE = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 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 ServicesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ServicesImplBase 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_CREATE_SERVICE: - serviceImpl.createService((com.google.cloud.run.v2.CreateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE: - serviceImpl.getService((com.google.cloud.run.v2.GetServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICES: - serviceImpl.listServices((com.google.cloud.run.v2.ListServicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVICE: - serviceImpl.updateService((com.google.cloud.run.v2.UpdateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE: - serviceImpl.deleteService((com.google.cloud.run.v2.DeleteServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) 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); - 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 ServicesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServicesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Services"); - } - } - - private static final class ServicesFileDescriptorSupplier - extends ServicesBaseDescriptorSupplier { - ServicesFileDescriptorSupplier() {} - } - - private static final class ServicesMethodDescriptorSupplier - extends ServicesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServicesMethodDescriptorSupplier(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 (ServicesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServicesFileDescriptorSupplier()) - .addMethod(getCreateServiceMethod()) - .addMethod(getGetServiceMethod()) - .addMethod(getListServicesMethod()) - .addMethod(getUpdateServiceMethod()) - .addMethod(getDeleteServiceMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java deleted file mode 100644 index 40d73ca..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/condition.proto - -package com.google.cloud.run.v2; - -public final class ConditionProto { - private ConditionProto() {} - 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_run_v2_Condition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Condition_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/run/v2/condition.proto\022\023g" + - "oogle.cloud.run.v2\032\037google/protobuf/time" + - "stamp.proto\"\325\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + - "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + - "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + - "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + - "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + - ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + - "(\0162+.google.cloud.run.v2.Condition.Commo" + - "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + - "gle.cloud.run.v2.Condition.RevisionReaso" + - "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + - "loud.run.v2.Condition.ExecutionReasonH\000\"" + - "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + - "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + - "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + - "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + - "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + - "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + - "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + - "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + - "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + - "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + - "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + - "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + - "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + - "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + - "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + - "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + - "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + - "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + - "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + - "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + - "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + - "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + - "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + - "\024HEALTH_CHECK_SKIPPED\020\013\"o\n\017ExecutionReas" + - "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + - "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + - "ZERO_EXIT_CODE\020\002B\t\n\007reasonsBc\n\027com.googl" + - "e.cloud.run.v2B\016ConditionProtoP\001Z6google" + - ".golang.org/genproto/googleapis/cloud/ru" + - "n/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_Condition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_Condition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Condition_descriptor, - new java.lang.String[] { "Type", "State", "Message", "LastTransitionTime", "Severity", "Reason", "RevisionReason", "ExecutionReason", "Reasons", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java deleted file mode 100644 index 81c3a8f..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public interface GetRevisionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetRevisionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the Revision.
-   * Format:
-   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The full name of the Revision.
-   * Format:
-   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
-   * 
- * - * 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-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java deleted file mode 100644 index 1e8c5a8..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/service.proto - -package com.google.cloud.run.v2; - -public interface GetServiceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the Service.
-   * Format: projects/{projectnumber}/locations/{location}/services/{service}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The full name of the Service.
-   * Format: projects/{projectnumber}/locations/{location}/services/{service}
-   * 
- * - * 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-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java deleted file mode 100644 index a906628..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ /dev/null @@ -1,226 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/k8s.min.proto - -package com.google.cloud.run.v2; - -public final class K8sMinProto { - private K8sMinProto() {} - 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_run_v2_Container_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_EnvVar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_EnvVarSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ContainerPort_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VolumeMount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Volume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VersionToPath_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CloudSqlInstance_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/run/v2/k8s.min.proto\022\023goo" + - "gle.cloud.run.v2\032\037google/api/field_behav" + - "ior.proto\032\031google/api/resource.proto\"\240\002\n" + - "\tContainer\022\014\n\004name\030\001 \001(\t\022\022\n\005image\030\002 \001(\tB" + - "\003\340A\002\022\017\n\007command\030\003 \003(\t\022\014\n\004args\030\004 \003(\t\022(\n\003e" + - "nv\030\005 \003(\0132\033.google.cloud.run.v2.EnvVar\022<\n" + - "\tresources\030\006 \001(\0132).google.cloud.run.v2.R" + - "esourceRequirements\0221\n\005ports\030\007 \003(\0132\".goo" + - "gle.cloud.run.v2.ContainerPort\0227\n\rvolume" + - "_mounts\030\010 \003(\0132 .google.cloud.run.v2.Volu" + - "meMount\"\236\001\n\024ResourceRequirements\022E\n\006limi" + - "ts\030\001 \003(\01325.google.cloud.run.v2.ResourceR" + - "equirements.LimitsEntry\022\020\n\010cpu_idle\030\002 \001(" + - "\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\"q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017\n" + - "\005value\030\002 \001(\tH\000\0229\n\014value_source\030\003 \001(\0132!.g" + - "oogle.cloud.run.v2.EnvVarSourceH\000B\010\n\006val" + - "ues\"N\n\014EnvVarSource\022>\n\016secret_key_ref\030\001 " + - "\001(\0132&.google.cloud.run.v2.SecretKeySelec" + - "tor\"\222\001\n\021SecretKeySelector\022;\n\006secret\030\001 \001(" + - "\tB+\340A\002\372A%\n#secretmanager.googleapis.com/" + - "Secret\022@\n\007version\030\002 \001(\tB/\372A,\n*secretmana" + - "ger.googleapis.com/SecretVersion\"5\n\rCont" + - "ainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container_por" + - "t\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volume\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.googl" + - "e.cloud.run.v2.SecretVolumeSourceH\000\022C\n\022c" + - "loud_sql_instance\030\003 \001(\0132%.google.cloud.r" + - "un.v2.CloudSqlInstanceH\000B\r\n\013volume_type\"" + - "r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(\tB\003\340" + - "A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run.v2." + - "VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"A\n\rV" + - "ersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007versi" + - "on\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlInstan" + - "ce\022\021\n\tinstances\030\001 \003(\tB\366\003\n\027com.google.clo" + - "ud.run.v2B\013K8sMinProtoP\001Z6google.golang." + - "org/genproto/googleapis/cloud/run/v2;run" + - "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" + - "projects/{project}/locations/{location}/" + - "keyRings/{key_ring}/cryptoKeys/{crypto_k" + - "ey}\352AJ\n#secretmanager.googleapis.com/Sec" + - "ret\022#projects/{project}/secrets/{secret}" + - "\352Ad\n*secretmanager.googleapis.com/Secret" + - "Version\0226projects/{project}/secrets/{sec" + - "ret}/versions/{version}\352Ad\n\"vpcaccess.go" + - "ogleapis.com/Connector\022>projects/{projec" + - "t}/locations/{location}/connectors/{conn" + - "ector}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_Container_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Container_descriptor, - new java.lang.String[] { "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", }); - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, - new java.lang.String[] { "Limits", "CpuIdle", }); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_EnvVar_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVar_descriptor, - new java.lang.String[] { "Name", "Value", "ValueSource", "Values", }); - internal_static_google_cloud_run_v2_EnvVarSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVarSource_descriptor, - new java.lang.String[] { "SecretKeyRef", }); - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, - new java.lang.String[] { "Secret", "Version", }); - internal_static_google_cloud_run_v2_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ContainerPort_descriptor, - new java.lang.String[] { "Name", "ContainerPort", }); - internal_static_google_cloud_run_v2_VolumeMount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VolumeMount_descriptor, - new java.lang.String[] { "Name", "MountPath", }); - internal_static_google_cloud_run_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Volume_descriptor, - new java.lang.String[] { "Name", "Secret", "CloudSqlInstance", "VolumeType", }); - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, - new java.lang.String[] { "Secret", "Items", "DefaultMode", }); - internal_static_google_cloud_run_v2_VersionToPath_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VersionToPath_descriptor, - new java.lang.String[] { "Path", "Version", "Mode", }); - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, - new java.lang.String[] { "Instances", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java deleted file mode 100644 index 1829e7d..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,226 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public final class RevisionProto { - private RevisionProto() {} - 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_run_v2_GetRevisionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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/run/v2/revision.proto\022\023go" + - "ogle.cloud.run.v2\032\034google/api/annotation" + - "s.proto\032\027google/api/client.proto\032\037google" + - "/api/field_behavior.proto\032\035google/api/la" + - "unch_stage.proto\032\031google/api/resource.pr" + - "oto\032\030google/api/routing.proto\032#google/cl" + - "oud/run/v2/condition.proto\032!google/cloud" + - "/run/v2/k8s.min.proto\032)google/cloud/run/" + - "v2/vendor_settings.proto\032#google/longrun" + - "ning/operations.proto\032\036google/protobuf/d" + - "uration.proto\032\037google/protobuf/timestamp" + - ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + - "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + - "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + - "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + - "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + - "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + - "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + - "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + - "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + - "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + - "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + - "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + - "(\0132).google.cloud.run.v2.Revision.Labels" + - "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + - "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + - "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "expire_time\030\t \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + - "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + - "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + - "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + - "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + - ".run.v2.VpcAccess\022(\n max_instance_reques" + - "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + - "oogle.protobuf.Duration\022\027\n\017service_accou" + - "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + - "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + - "google.cloud.run.v2.Volume\022H\n\025execution_" + - "environment\030\024 \001(\0162).google.cloud.run.v2." + - "ExecutionEnvironment\022>\n\016encryption_key\030\025" + - " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + - "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + - "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + - "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + - "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + - "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + - "is.com/Revision\022Oprojects/{project}/loca" + - "tions/{location}/services/{service}/revi" + - "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + - "tRevision\022\'.google.cloud.run.v2.GetRevis" + - "ionRequest\032\035.google.cloud.run.v2.Revisio" + - "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + - "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + - "e\022$projects/*/locations/{location=*}/**\332" + - "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + - "run.v2.ListRevisionsRequest\032*.google.clo" + - "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + - "8/v2/{parent=projects/*/locations/*/serv" + - "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + - "cts/*/locations/{location=*}/**\332A\006parent" + - "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + - "2.DeleteRevisionRequest\032\035.google.longrun" + - "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + - "cts/*/locations/*/services/*/revisions/*" + - "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + - "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + - "ion\032F\312A\022run.googleapis.com\322A.https://www" + - ".googleapis.com/auth/cloud-platformBb\n\027c" + - "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + - "6google.golang.org/genproto/googleapis/c" + - "loud/run/v2;runb\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.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, - new java.lang.String[] { "Revisions", "NextPageToken", }); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Revision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_descriptor, - new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Service", "Scaling", "VpcAccess", "MaxInstanceRequestConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "Reconciling", "Conditions", "ObservedGeneration", "LogUri", "Etag", }); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - 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.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - 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.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java deleted file mode 100644 index 4b86c8b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision_template.proto - -package com.google.cloud.run.v2; - -public final class RevisionTemplateProto { - private RevisionTemplateProto() {} - 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_run_v2_RevisionTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_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/run/v2/revision_template." + - "proto\022\023google.cloud.run.v2\032\031google/api/r" + - "esource.proto\032!google/cloud/run/v2/k8s.m" + - "in.proto\032)google/cloud/run/v2/vendor_set" + - "tings.proto\032\036google/protobuf/duration.pr" + - "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + - "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + - "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + - "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + - " \003(\01326.google.cloud.run.v2.RevisionTempl" + - "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + - "google.cloud.run.v2.RevisionScaling\0222\n\nv" + - "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + - "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + - "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + - "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + - "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + - ".run.v2.Volume\022H\n\025execution_environment\030" + - "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + - "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\022(\n max_" + - "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + - "B\025RevisionTemplateProtoP\001Z6google.golang" + - ".org/genproto/googleapis/cloud/run/v2;ru" + - "nb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, - new java.lang.String[] { "Revision", "Labels", "Annotations", "Scaling", "VpcAccess", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "MaxInstanceRequestConcurrency", }); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java deleted file mode 100644 index 6a79008..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,287 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/service.proto - -package com.google.cloud.run.v2; - -public final class ServiceProto { - private ServiceProto() {} - 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_run_v2_CreateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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/run/v2/service.proto\022\023goo" + - "gle.cloud.run.v2\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\035google/api/lau" + - "nch_stage.proto\032\031google/api/resource.pro" + - "to\032\030google/api/routing.proto\032#google/clo" + - "ud/run/v2/condition.proto\032+google/cloud/" + - "run/v2/revision_template.proto\032(google/c" + - "loud/run/v2/traffic_target.proto\032)google" + - "/cloud/run/v2/vendor_settings.proto\032\036goo" + - "gle/iam/v1/iam_policy.proto\032\032google/iam/" + - "v1/policy.proto\032#google/longrunning/oper" + - "ations.proto\032\037google/protobuf/timestamp." + - "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + - "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + - "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + - "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + - "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + - "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + - "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + - "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + - "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + - "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + - "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + - "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + - "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + - "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + - "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + - "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + - "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + - "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + - "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + - "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + - "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + - "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + - "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + - "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + - "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + - "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + - "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + - ".google.api.LaunchStage\022F\n\024binary_author" + - "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + - "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + - "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + - "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + - "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + - "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + - "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + - "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + - "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + - "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + - "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + - ".googleapis.com/Revision\022G\n\020traffic_stat" + - "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + - "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + - "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + - ".com/Service\022:projects/{project}/locatio" + - "ns/{location}/services/{service}R\001\0012\267\r\n\010" + - "Services\022\375\001\n\rCreateService\022).google.clou" + - "d.run.v2.CreateServiceRequest\032\035.google.l" + - "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + - "nt=projects/*/locations/*}/services:\007ser" + - "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + - "ns/{location=*}\332A\031parent,service,service" + - "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + - "&.google.cloud.run.v2.GetServiceRequest\032" + - "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + - "v2/{name=projects/*/locations/*/services" + - "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + - "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + - "(.google.cloud.run.v2.ListServicesReques" + - "t\032).google.cloud.run.v2.ListServicesResp" + - "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + - "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + - "ects/*/locations/{location=*}\332A\006parent\022\374" + - "\001\n\rUpdateService\022).google.cloud.run.v2.U" + - "pdateServiceRequest\032\035.google.longrunning" + - ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + - "rojects/*/locations/*/services/*}:\007servi" + - "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + - "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + - "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + - ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + - "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + - "{name=projects/*/locations/*/services/*}" + - "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + - "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + - "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + - "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + - "\344\223\002?\022=/v2/{resource=projects/*/locations" + - "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + - "licy\022\".google.iam.v1.SetIamPolicyRequest" + - "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + - "source=projects/*/locations/*/services/*" + - "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + - "\022(.google.iam.v1.TestIamPermissionsReque" + - "st\032).google.iam.v1.TestIamPermissionsRes" + - "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + - "locations/*/services/*}:testIamPermissio" + - "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + - "ww.googleapis.com/auth/cloud-platformBa\n" + - "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + - "Z6google.golang.org/genproto/googleapis/" + - "cloud/run/v2;runb\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.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, - new java.lang.String[] { "Parent", "Service", "ServiceId", "ValidateOnly", }); - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, - new java.lang.String[] { "Service", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, - new java.lang.String[] { "Services", "NextPageToken", }); - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Service_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_descriptor, - new java.lang.String[] { "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "Reconciling", "Etag", }); - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - 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.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - 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.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java deleted file mode 100644 index 41e7bb8..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/traffic_target.proto - -package com.google.cloud.run.v2; - -public final class TrafficTargetProto { - private TrafficTargetProto() {} - 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_run_v2_TrafficTarget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TrafficTargetStatus_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/run/v2/traffic_target.pro" + - "to\022\023google.cloud.run.v2\032\031google/api/reso" + - "urce.proto\"\241\001\n\rTrafficTarget\022>\n\004type\030\001 \001" + - "(\01620.google.cloud.run.v2.TrafficTargetAl" + - "locationType\0222\n\010revision\030\002 \001(\tB \372A\035\n\033run" + - ".googleapis.com/Revision\022\017\n\007percent\030\003 \001(" + - "\005\022\013\n\003tag\030\004 \001(\t\"\264\001\n\023TrafficTargetStatus\022>" + - "\n\004type\030\001 \001(\01620.google.cloud.run.v2.Traff" + - "icTargetAllocationType\0222\n\010revision\030\002 \001(\t" + - "B \372A\035\n\033run.googleapis.com/Revision\022\017\n\007pe" + - "rcent\030\003 \001(\005\022\013\n\003tag\030\004 \001(\t\022\013\n\003uri\030\005 \001(\t*\245\001" + - "\n\033TrafficTargetAllocationType\022.\n*TRAFFIC" + - "_TARGET_ALLOCATION_TYPE_UNSPECIFIED\020\000\022)\n" + - "%TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\020\001" + - "\022+\n\'TRAFFIC_TARGET_ALLOCATION_TYPE_REVIS" + - "ION\020\002Bg\n\027com.google.cloud.run.v2B\022Traffi" + - "cTargetProtoP\001Z6google.golang.org/genpro" + - "to/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_TrafficTarget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TrafficTarget_descriptor, - new java.lang.String[] { "Type", "Revision", "Percent", "Tag", }); - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor, - new java.lang.String[] { "Type", "Revision", "Percent", "Tag", "Uri", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java deleted file mode 100644 index 53c79f9..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/vendor_settings.proto - -package com.google.cloud.run.v2; - -public final class VendorSettingsProto { - private VendorSettingsProto() {} - 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_run_v2_VpcAccess_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionScaling_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionScaling_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/run/v2/vendor_settings.pr" + - "oto\022\023google.cloud.run.v2\032\031google/api/res" + - "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + - " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + - "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + - ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + - "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + - "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + - "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + - "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + - "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + - "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + - "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + - "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + - "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + - "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + - "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + - "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + - "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + - "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + - "ttingsProtoP\001Z6google.golang.org/genprot" + - "o/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_VpcAccess_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VpcAccess_descriptor, - new java.lang.String[] { "Connector", "Egress", }); - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, - new java.lang.String[] { "UseDefault", "BreakglassJustification", "BinauthzMethod", }); - internal_static_google_cloud_run_v2_RevisionScaling_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionScaling_descriptor, - new java.lang.String[] { "MinInstanceCount", "MaxInstanceCount", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java index 496bd28..deb4030 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** + * + * *
  * Settings for Binary Authorization feature.
  * 
* * Protobuf type {@code google.cloud.run.v2.BinaryAuthorization} */ -public final class BinaryAuthorization extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.BinaryAuthorization) BinaryAuthorizationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinaryAuthorization.newBuilder() to construct. private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BinaryAuthorization() { breakglassJustification_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinaryAuthorization(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinaryAuthorization( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,26 @@ private BinaryAuthorization( case 0: done = true; break; - case 8: { - binauthzMethod_ = input.readBool(); - binauthzMethodCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + binauthzMethod_ = input.readBool(); + binauthzMethodCase_ = 1; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - breakglassJustification_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + breakglassJustification_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +97,39 @@ private BinaryAuthorization( } 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.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.BinaryAuthorization.class, com.google.cloud.run.v2.BinaryAuthorization.Builder.class); + com.google.cloud.run.v2.BinaryAuthorization.class, + com.google.cloud.run.v2.BinaryAuthorization.Builder.class); } private int binauthzMethodCase_ = 0; private java.lang.Object binauthzMethod_; + public enum BinauthzMethodCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USE_DEFAULT(1), BINAUTHZMETHOD_NOT_SET(0); private final int value; + private BinauthzMethodCase(int value) { this.value = value; } @@ -121,30 +145,35 @@ public static BinauthzMethodCase valueOf(int value) { public static BinauthzMethodCase forNumber(int value) { switch (value) { - case 1: return USE_DEFAULT; - case 0: return BINAUTHZMETHOD_NOT_SET; - default: return null; + case 1: + return USE_DEFAULT; + case 0: + return BINAUTHZMETHOD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BinauthzMethodCase - getBinauthzMethodCase() { - return BinauthzMethodCase.forNumber( - binauthzMethodCase_); + public BinauthzMethodCase getBinauthzMethodCase() { + return BinauthzMethodCase.forNumber(binauthzMethodCase_); } public static final int USE_DEFAULT_FIELD_NUMBER = 1; /** + * + * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; + * * @return Whether the useDefault field is set. */ @java.lang.Override @@ -152,12 +181,15 @@ public boolean hasUseDefault() { return binauthzMethodCase_ == 1; } /** + * + * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; + * * @return The useDefault. */ @java.lang.Override @@ -171,6 +203,8 @@ public boolean getUseDefault() { public static final int BREAKGLASS_JUSTIFICATION_FIELD_NUMBER = 2; private volatile java.lang.Object breakglassJustification_; /** + * + * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -179,6 +213,7 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ @java.lang.Override @@ -187,14 +222,15 @@ public java.lang.String getBreakglassJustification() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); breakglassJustification_ = s; return s; } } /** + * + * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -203,16 +239,15 @@ public java.lang.String getBreakglassJustification() {
    * 
* * string breakglass_justification = 2; + * * @return The bytes for breakglassJustification. */ @java.lang.Override - public com.google.protobuf.ByteString - getBreakglassJustificationBytes() { + public com.google.protobuf.ByteString getBreakglassJustificationBytes() { java.lang.Object ref = breakglassJustification_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); breakglassJustification_ = b; return b; } else { @@ -221,6 +256,7 @@ public java.lang.String getBreakglassJustification() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,11 +268,9 @@ 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 (binauthzMethodCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) binauthzMethod_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) binauthzMethod_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, breakglassJustification_); @@ -251,9 +285,9 @@ public int getSerializedSize() { size = 0; if (binauthzMethodCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) binauthzMethod_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) binauthzMethod_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, breakglassJustification_); @@ -266,20 +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.run.v2.BinaryAuthorization)) { return super.equals(obj); } - com.google.cloud.run.v2.BinaryAuthorization other = (com.google.cloud.run.v2.BinaryAuthorization) obj; + com.google.cloud.run.v2.BinaryAuthorization other = + (com.google.cloud.run.v2.BinaryAuthorization) obj; - if (!getBreakglassJustification() - .equals(other.getBreakglassJustification())) return false; + if (!getBreakglassJustification().equals(other.getBreakglassJustification())) return false; if (!getBinauthzMethodCase().equals(other.getBinauthzMethodCase())) return false; switch (binauthzMethodCase_) { case 1: - if (getUseDefault() - != other.getUseDefault()) return false; + if (getUseDefault() != other.getUseDefault()) return false; break; case 0: default: @@ -300,8 +333,7 @@ public int hashCode() { switch (binauthzMethodCase_) { case 1: hash = (37 * hash) + USE_DEFAULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseDefault()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseDefault()); break; case 0: default: @@ -311,118 +343,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.BinaryAuthorization parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.BinaryAuthorization parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.BinaryAuthorization parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization 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; } /** + * + * *
    * Settings for Binary Authorization feature.
    * 
* * Protobuf type {@code google.cloud.run.v2.BinaryAuthorization} */ - 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.run.v2.BinaryAuthorization) com.google.cloud.run.v2.BinaryAuthorizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.BinaryAuthorization.class, com.google.cloud.run.v2.BinaryAuthorization.Builder.class); + com.google.cloud.run.v2.BinaryAuthorization.class, + com.google.cloud.run.v2.BinaryAuthorization.Builder.class); } // Construct using com.google.cloud.run.v2.BinaryAuthorization.newBuilder() @@ -430,16 +471,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(); @@ -451,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; } @java.lang.Override @@ -472,7 +512,8 @@ public com.google.cloud.run.v2.BinaryAuthorization build() { @java.lang.Override public com.google.cloud.run.v2.BinaryAuthorization buildPartial() { - com.google.cloud.run.v2.BinaryAuthorization result = new com.google.cloud.run.v2.BinaryAuthorization(this); + com.google.cloud.run.v2.BinaryAuthorization result = + new com.google.cloud.run.v2.BinaryAuthorization(this); if (binauthzMethodCase_ == 1) { result.binauthzMethod_ = binauthzMethod_; } @@ -486,38 +527,39 @@ public com.google.cloud.run.v2.BinaryAuthorization 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.run.v2.BinaryAuthorization) { - return mergeFrom((com.google.cloud.run.v2.BinaryAuthorization)other); + return mergeFrom((com.google.cloud.run.v2.BinaryAuthorization) other); } else { super.mergeFrom(other); return this; @@ -531,13 +573,15 @@ public Builder mergeFrom(com.google.cloud.run.v2.BinaryAuthorization other) { onChanged(); } switch (other.getBinauthzMethodCase()) { - case USE_DEFAULT: { - setUseDefault(other.getUseDefault()); - break; - } - case BINAUTHZMETHOD_NOT_SET: { - break; - } + case USE_DEFAULT: + { + setUseDefault(other.getUseDefault()); + break; + } + case BINAUTHZMETHOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -567,12 +611,12 @@ public Builder mergeFrom( } return this; } + private int binauthzMethodCase_ = 0; private java.lang.Object binauthzMethod_; - public BinauthzMethodCase - getBinauthzMethodCase() { - return BinauthzMethodCase.forNumber( - binauthzMethodCase_); + + public BinauthzMethodCase getBinauthzMethodCase() { + return BinauthzMethodCase.forNumber(binauthzMethodCase_); } public Builder clearBinauthzMethod() { @@ -582,26 +626,31 @@ public Builder clearBinauthzMethod() { return this; } - /** + * + * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; + * * @return Whether the useDefault field is set. */ public boolean hasUseDefault() { return binauthzMethodCase_ == 1; } /** + * + * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; + * * @return The useDefault. */ public boolean getUseDefault() { @@ -611,12 +660,15 @@ public boolean getUseDefault() { return false; } /** + * + * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; + * * @param value The useDefault to set. * @return This builder for chaining. */ @@ -627,12 +679,15 @@ public Builder setUseDefault(boolean value) { return this; } /** + * + * *
      * If True, indicates to use the default project's binary authorization
      * policy. If False, binary authorization will be disabled.
      * 
* * bool use_default = 1; + * * @return This builder for chaining. */ public Builder clearUseDefault() { @@ -646,6 +701,8 @@ public Builder clearUseDefault() { private java.lang.Object breakglassJustification_ = ""; /** + * + * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -654,13 +711,13 @@ public Builder clearUseDefault() {
      * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ public java.lang.String getBreakglassJustification() { java.lang.Object ref = breakglassJustification_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); breakglassJustification_ = s; return s; @@ -669,6 +726,8 @@ public java.lang.String getBreakglassJustification() { } } /** + * + * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -677,15 +736,14 @@ public java.lang.String getBreakglassJustification() {
      * 
* * string breakglass_justification = 2; + * * @return The bytes for breakglassJustification. */ - public com.google.protobuf.ByteString - getBreakglassJustificationBytes() { + public com.google.protobuf.ByteString getBreakglassJustificationBytes() { java.lang.Object ref = breakglassJustification_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); breakglassJustification_ = b; return b; } else { @@ -693,6 +751,8 @@ public java.lang.String getBreakglassJustification() { } } /** + * + * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -701,20 +761,22 @@ public java.lang.String getBreakglassJustification() {
      * 
* * string breakglass_justification = 2; + * * @param value The breakglassJustification to set. * @return This builder for chaining. */ - public Builder setBreakglassJustification( - java.lang.String value) { + public Builder setBreakglassJustification(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + breakglassJustification_ = value; onChanged(); return this; } /** + * + * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -723,15 +785,18 @@ public Builder setBreakglassJustification(
      * 
* * string breakglass_justification = 2; + * * @return This builder for chaining. */ public Builder clearBreakglassJustification() { - + breakglassJustification_ = getDefaultInstance().getBreakglassJustification(); onChanged(); return this; } /** + * + * *
      * If present, indicates to use Breakglass using this justification.
      * If use_default is False, then it must be empty.
@@ -740,23 +805,23 @@ public Builder clearBreakglassJustification() {
      * 
* * string breakglass_justification = 2; + * * @param value The bytes for breakglassJustification to set. * @return This builder for chaining. */ - public Builder setBreakglassJustificationBytes( - com.google.protobuf.ByteString value) { + public Builder setBreakglassJustificationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + breakglassJustification_ = 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); } @@ -766,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.BinaryAuthorization) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.BinaryAuthorization) private static final com.google.cloud.run.v2.BinaryAuthorization DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.BinaryAuthorization(); } @@ -780,16 +845,16 @@ public static com.google.cloud.run.v2.BinaryAuthorization getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinaryAuthorization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinaryAuthorization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinaryAuthorization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -804,6 +869,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.BinaryAuthorization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java index 5080ca3..e5d7041 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java @@ -1,34 +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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface BinaryAuthorizationOrBuilder extends +public interface BinaryAuthorizationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.BinaryAuthorization) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; + * * @return Whether the useDefault field is set. */ boolean hasUseDefault(); /** + * + * *
    * If True, indicates to use the default project's binary authorization
    * policy. If False, binary authorization will be disabled.
    * 
* * bool use_default = 1; + * * @return The useDefault. */ boolean getUseDefault(); /** + * + * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -37,10 +61,13 @@ public interface BinaryAuthorizationOrBuilder extends
    * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ java.lang.String getBreakglassJustification(); /** + * + * *
    * If present, indicates to use Breakglass using this justification.
    * If use_default is False, then it must be empty.
@@ -49,10 +76,10 @@ public interface BinaryAuthorizationOrBuilder extends
    * 
* * string breakglass_justification = 2; + * * @return The bytes for breakglassJustification. */ - com.google.protobuf.ByteString - getBreakglassJustificationBytes(); + com.google.protobuf.ByteString getBreakglassJustificationBytes(); public com.google.cloud.run.v2.BinaryAuthorization.BinauthzMethodCase getBinauthzMethodCase(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java index 9dba37b..b250b9b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * Represents a specific Cloud SQL instance.
  * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ -public final class CloudSqlInstance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSqlInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CloudSqlInstance) CloudSqlInstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlInstance.newBuilder() to construct. private CloudSqlInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlInstance() { instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlInstance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private CloudSqlInstance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add(s); + break; } - instances_.add(s); - 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 +95,7 @@ private CloudSqlInstance( } 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)) { instances_ = instances_.getUnmodifiableView(); @@ -87,22 +104,27 @@ private CloudSqlInstance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, + com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList instances_; /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -112,13 +134,15 @@ private CloudSqlInstance(
    * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList - getInstancesList() { + public com.google.protobuf.ProtocolStringList getInstancesList() { return instances_; } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -128,12 +152,15 @@ private CloudSqlInstance(
    * 
* * repeated string instances = 1; + * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -143,6 +170,7 @@ public int getInstancesCount() {
    * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -150,6 +178,8 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -159,15 +189,16 @@ public java.lang.String getInstances(int index) {
    * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString - getInstancesBytes(int index) { + public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,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 < instances_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instances_.getRaw(i)); } @@ -209,15 +239,14 @@ 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.run.v2.CloudSqlInstance)) { return super.equals(obj); } com.google.cloud.run.v2.CloudSqlInstance other = (com.google.cloud.run.v2.CloudSqlInstance) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,118 +267,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.CloudSqlInstance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.CloudSqlInstance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.CloudSqlInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance 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 a specific Cloud SQL instance.
    * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ - 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.run.v2.CloudSqlInstance) com.google.cloud.run.v2.CloudSqlInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, + com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } // Construct using com.google.cloud.run.v2.CloudSqlInstance.newBuilder() @@ -357,16 +395,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(); @@ -376,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override @@ -397,7 +434,8 @@ public com.google.cloud.run.v2.CloudSqlInstance build() { @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance buildPartial() { - com.google.cloud.run.v2.CloudSqlInstance result = new com.google.cloud.run.v2.CloudSqlInstance(this); + com.google.cloud.run.v2.CloudSqlInstance result = + new com.google.cloud.run.v2.CloudSqlInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { instances_ = instances_.getUnmodifiableView(); @@ -412,38 +450,39 @@ public com.google.cloud.run.v2.CloudSqlInstance 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.run.v2.CloudSqlInstance) { - return mergeFrom((com.google.cloud.run.v2.CloudSqlInstance)other); + return mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) other); } else { super.mergeFrom(other); return this; @@ -490,16 +529,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList instances_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new com.google.protobuf.LazyStringArrayList(instances_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -509,13 +553,15 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList - getInstancesList() { + public com.google.protobuf.ProtocolStringList getInstancesList() { return instances_.getUnmodifiableView(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -525,12 +571,15 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; + * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -540,6 +589,7 @@ public int getInstancesCount() {
      * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -547,6 +597,8 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -556,14 +608,16 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString - getInstancesBytes(int index) { + public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -573,21 +627,23 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; + * * @param index The index to set the value at. * @param value The instances to set. * @return This builder for chaining. */ - public Builder setInstances( - int index, java.lang.String value) { + public Builder setInstances(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -597,20 +653,22 @@ public Builder setInstances(
      * 
* * repeated string instances = 1; + * * @param value The instances to add. * @return This builder for chaining. */ - public Builder addInstances( - java.lang.String value) { + public Builder addInstances(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -620,18 +678,19 @@ public Builder addInstances(
      * 
* * repeated string instances = 1; + * * @param values The instances to add. * @return This builder for chaining. */ - public Builder addAllInstances( - java.lang.Iterable values) { + public Builder addAllInstances(java.lang.Iterable values) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -641,6 +700,7 @@ public Builder addAllInstances(
      * 
* * repeated string instances = 1; + * * @return This builder for chaining. */ public Builder clearInstances() { @@ -650,6 +710,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -659,23 +721,23 @@ public Builder clearInstances() {
      * 
* * repeated string instances = 1; + * * @param value The bytes of the instances to add. * @return This builder for chaining. */ - public Builder addInstancesBytes( - com.google.protobuf.ByteString value) { + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstancesIsMutable(); instances_.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); } @@ -685,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CloudSqlInstance) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CloudSqlInstance) private static final com.google.cloud.run.v2.CloudSqlInstance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.CloudSqlInstance(); } @@ -699,16 +761,16 @@ public static com.google.cloud.run.v2.CloudSqlInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlInstance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlInstance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,6 +785,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CloudSqlInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java index 7d86c2e..e3e803e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface CloudSqlInstanceOrBuilder extends +public interface CloudSqlInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CloudSqlInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -17,11 +35,13 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -31,10 +51,13 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @return The count of instances. */ int getInstancesCount(); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -44,11 +67,14 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ java.lang.String getInstances(int index); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -58,9 +84,9 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - com.google.protobuf.ByteString - getInstancesBytes(int index); + com.google.protobuf.ByteString getInstancesBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index f4e9694..da24e6f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.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/run/v2/condition.proto package com.google.cloud.run.v2; /** + * + * *
  * Defines a status condition for a resource.
  * 
* * Protobuf type {@code google.cloud.run.v2.Condition} */ -public final class Condition extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Condition extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Condition) ConditionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Condition() { type_ = ""; state_ = 0; @@ -28,16 +46,15 @@ private Condition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Condition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Condition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,77 @@ private Condition( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + type_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastTransitionTime_ != null) { - subBuilder = lastTransitionTime_.toBuilder(); + message_ = s; + break; } - lastTransitionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTransitionTime_); - lastTransitionTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastTransitionTime_ != null) { + subBuilder = lastTransitionTime_.toBuilder(); + } + lastTransitionTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); + } + + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - severity_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); - reasonsCase_ = 6; - reasons_ = rawValue; - break; - } - case 72: { - int rawValue = input.readEnum(); - reasonsCase_ = 9; - reasons_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); - reasonsCase_ = 11; - reasons_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + severity_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); + reasonsCase_ = 6; + reasons_ = rawValue; + break; + } + case 72: + { + int rawValue = input.readEnum(); + reasonsCase_ = 9; + reasons_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); + reasonsCase_ = 11; + reasons_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,36 +151,41 @@ private Condition( } 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.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ConditionProto + .internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_fieldAccessorTable + return com.google.cloud.run.v2.ConditionProto + .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.Condition.class, com.google.cloud.run.v2.Condition.Builder.class); + com.google.cloud.run.v2.Condition.class, + com.google.cloud.run.v2.Condition.Builder.class); } /** + * + * *
    * Represents the possible Condition states.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -163,6 +194,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -171,6 +204,8 @@ public enum State */ CONDITION_PENDING(1), /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -179,6 +214,8 @@ public enum State */ CONDITION_RECONCILING(2), /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -187,6 +224,8 @@ public enum State */ CONDITION_FAILED(3), /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -198,6 +237,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -206,6 +247,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -214,6 +257,8 @@ public enum State */ public static final int CONDITION_PENDING_VALUE = 1; /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -222,6 +267,8 @@ public enum State */ public static final int CONDITION_RECONCILING_VALUE = 2; /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -230,6 +277,8 @@ public enum State */ public static final int CONDITION_FAILED_VALUE = 3; /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -238,7 +287,6 @@ public enum State */ public static final int CONDITION_SUCCEEDED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -263,51 +311,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CONDITION_PENDING; - case 2: return CONDITION_RECONCILING; - case 3: return CONDITION_FAILED; - case 4: return CONDITION_SUCCEEDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CONDITION_PENDING; + case 2: + return CONDITION_RECONCILING; + case 3: + return CONDITION_FAILED; + case 4: + return CONDITION_SUCCEEDED; + 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() { + 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.run.v2.Condition.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; @@ -325,15 +375,18 @@ private State(int value) { } /** + * + * *
    * Represents the severity of the condition failures.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified severity
      * 
@@ -342,6 +395,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Error severity.
      * 
@@ -350,6 +405,8 @@ public enum Severity */ ERROR(1), /** + * + * *
      * Warning severity.
      * 
@@ -358,6 +415,8 @@ public enum Severity */ WARNING(2), /** + * + * *
      * Info severity.
      * 
@@ -369,6 +428,8 @@ public enum Severity ; /** + * + * *
      * Unspecified severity
      * 
@@ -377,6 +438,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Error severity.
      * 
@@ -385,6 +448,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
      * Warning severity.
      * 
@@ -393,6 +458,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
      * Info severity.
      * 
@@ -401,7 +468,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -426,50 +492,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.run.v2.Condition.getDescriptor().getEnumTypes().get(1); } 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; @@ -487,15 +554,18 @@ private Severity(int value) { } /** + * + * *
    * Reasons common to all types of conditions.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.CommonReason} */ - public enum CommonReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -504,6 +574,8 @@ public enum CommonReason */ COMMON_REASON_UNDEFINED(0), /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -512,6 +584,8 @@ public enum CommonReason */ UNKNOWN(1), /** + * + * *
      * Revision creation process failed.
      * 
@@ -520,6 +594,8 @@ public enum CommonReason */ REVISION_FAILED(3), /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -528,6 +604,8 @@ public enum CommonReason */ PROGRESS_DEADLINE_EXCEEDED(4), /** + * + * *
      * The container image path is incorrect.
      * 
@@ -536,6 +614,8 @@ public enum CommonReason */ CONTAINER_MISSING(6), /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -544,6 +624,8 @@ public enum CommonReason */ CONTAINER_PERMISSION_DENIED(7), /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -552,6 +634,8 @@ public enum CommonReason */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -560,6 +644,8 @@ public enum CommonReason */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -568,6 +654,8 @@ public enum CommonReason */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -576,6 +664,8 @@ public enum CommonReason */ ENCRYPTION_KEY_CHECK_FAILED(11), /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -584,6 +674,8 @@ public enum CommonReason */ SECRETS_ACCESS_CHECK_FAILED(12), /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -592,6 +684,8 @@ public enum CommonReason */ WAITING_FOR_OPERATION(13), /** + * + * *
      * System will retry immediately.
      * 
@@ -600,6 +694,8 @@ public enum CommonReason */ IMMEDIATE_RETRY(14), /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -608,6 +704,8 @@ public enum CommonReason */ POSTPONED_RETRY(15), /** + * + * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -619,6 +717,8 @@ public enum CommonReason ; /** + * + * *
      * Default value.
      * 
@@ -627,6 +727,8 @@ public enum CommonReason */ public static final int COMMON_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -635,6 +737,8 @@ public enum CommonReason */ public static final int UNKNOWN_VALUE = 1; /** + * + * *
      * Revision creation process failed.
      * 
@@ -643,6 +747,8 @@ public enum CommonReason */ public static final int REVISION_FAILED_VALUE = 3; /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -651,6 +757,8 @@ public enum CommonReason */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** + * + * *
      * The container image path is incorrect.
      * 
@@ -659,6 +767,8 @@ public enum CommonReason */ public static final int CONTAINER_MISSING_VALUE = 6; /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -667,6 +777,8 @@ public enum CommonReason */ public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7; /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -675,6 +787,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -683,6 +797,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9; /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -691,6 +807,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10; /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -699,6 +817,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11; /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -707,6 +827,8 @@ public enum CommonReason */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -715,6 +837,8 @@ public enum CommonReason */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** + * + * *
      * System will retry immediately.
      * 
@@ -723,6 +847,8 @@ public enum CommonReason */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -731,6 +857,8 @@ public enum CommonReason */ public static final int POSTPONED_RETRY_VALUE = 15; /** + * + * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -739,7 +867,6 @@ public enum CommonReason */ public static final int INTERNAL_VALUE = 16; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -764,61 +891,73 @@ public static CommonReason valueOf(int value) { */ public static CommonReason forNumber(int value) { switch (value) { - case 0: return COMMON_REASON_UNDEFINED; - case 1: return UNKNOWN; - case 3: return REVISION_FAILED; - case 4: return PROGRESS_DEADLINE_EXCEEDED; - case 6: return CONTAINER_MISSING; - case 7: return CONTAINER_PERMISSION_DENIED; - case 8: return CONTAINER_IMAGE_UNAUTHORIZED; - case 9: return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; - case 10: return ENCRYPTION_KEY_PERMISSION_DENIED; - case 11: return ENCRYPTION_KEY_CHECK_FAILED; - case 12: return SECRETS_ACCESS_CHECK_FAILED; - case 13: return WAITING_FOR_OPERATION; - case 14: return IMMEDIATE_RETRY; - case 15: return POSTPONED_RETRY; - case 16: return INTERNAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return COMMON_REASON_UNDEFINED; + case 1: + return UNKNOWN; + case 3: + return REVISION_FAILED; + case 4: + return PROGRESS_DEADLINE_EXCEEDED; + case 6: + return CONTAINER_MISSING; + case 7: + return CONTAINER_PERMISSION_DENIED; + case 8: + return CONTAINER_IMAGE_UNAUTHORIZED; + case 9: + return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; + case 10: + return ENCRYPTION_KEY_PERMISSION_DENIED; + case 11: + return ENCRYPTION_KEY_CHECK_FAILED; + case 12: + return SECRETS_ACCESS_CHECK_FAILED; + case 13: + return WAITING_FOR_OPERATION; + case 14: + return IMMEDIATE_RETRY; + case 15: + return POSTPONED_RETRY; + case 16: + return INTERNAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - CommonReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CommonReason findValueByNumber(int number) { - return CommonReason.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 CommonReason findValueByNumber(int number) { + return CommonReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(2); } private static final CommonReason[] VALUES = values(); - public static CommonReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CommonReason 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; @@ -836,15 +975,18 @@ private CommonReason(int value) { } /** + * + * *
    * Reasons specific to Revision resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason} */ - public enum RevisionReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -853,6 +995,8 @@ public enum RevisionReason */ REVISION_REASON_UNDEFINED(0), /** + * + * *
      * Revision in Pending state.
      * 
@@ -861,6 +1005,8 @@ public enum RevisionReason */ PENDING(1), /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -869,6 +1015,8 @@ public enum RevisionReason */ RESERVE(2), /** + * + * *
      * Revision is Retired.
      * 
@@ -877,6 +1025,8 @@ public enum RevisionReason */ RETIRED(3), /** + * + * *
      * Revision is being retired.
      * 
@@ -885,6 +1035,8 @@ public enum RevisionReason */ RETIRING(4), /** + * + * *
      * Revision is being recreated.
      * 
@@ -893,6 +1045,8 @@ public enum RevisionReason */ RECREATING(5), /** + * + * *
      * There was a health check error.
      * 
@@ -901,6 +1055,8 @@ public enum RevisionReason */ HEALTH_CHECK_CONTAINER_ERROR(6), /** + * + * *
      * Health check failed due to user error from customized path of the
      * container. System will retry.
@@ -910,6 +1066,8 @@ public enum RevisionReason
      */
     CUSTOMIZED_PATH_RESPONSE_PENDING(7),
     /**
+     *
+     *
      * 
      * A revision with min_instance_count > 0 was created and is reserved, but
      * it was not configured to serve traffic, so it's not live. This can also
@@ -920,6 +1078,8 @@ public enum RevisionReason
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -928,6 +1088,8 @@ public enum RevisionReason */ ACTIVE_REVISION_LIMIT_REACHED(9), /** + * + * *
      * There was no deployment defined.
      * This value is no longer used, but Services created in older versions of
@@ -938,6 +1100,8 @@ public enum RevisionReason
      */
     NO_DEPLOYMENT(10),
     /**
+     *
+     *
      * 
      * A revision's container has no port specified since the revision is of a
      * manually scaled service with 0 instance count
@@ -950,6 +1114,8 @@ public enum RevisionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -958,6 +1124,8 @@ public enum RevisionReason */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Revision in Pending state.
      * 
@@ -966,6 +1134,8 @@ public enum RevisionReason */ public static final int PENDING_VALUE = 1; /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -974,6 +1144,8 @@ public enum RevisionReason */ public static final int RESERVE_VALUE = 2; /** + * + * *
      * Revision is Retired.
      * 
@@ -982,6 +1154,8 @@ public enum RevisionReason */ public static final int RETIRED_VALUE = 3; /** + * + * *
      * Revision is being retired.
      * 
@@ -990,6 +1164,8 @@ public enum RevisionReason */ public static final int RETIRING_VALUE = 4; /** + * + * *
      * Revision is being recreated.
      * 
@@ -998,6 +1174,8 @@ public enum RevisionReason */ public static final int RECREATING_VALUE = 5; /** + * + * *
      * There was a health check error.
      * 
@@ -1006,6 +1184,8 @@ public enum RevisionReason */ public static final int HEALTH_CHECK_CONTAINER_ERROR_VALUE = 6; /** + * + * *
      * Health check failed due to user error from customized path of the
      * container. System will retry.
@@ -1015,6 +1195,8 @@ public enum RevisionReason
      */
     public static final int CUSTOMIZED_PATH_RESPONSE_PENDING_VALUE = 7;
     /**
+     *
+     *
      * 
      * A revision with min_instance_count > 0 was created and is reserved, but
      * it was not configured to serve traffic, so it's not live. This can also
@@ -1025,6 +1207,8 @@ public enum RevisionReason
      */
     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1033,6 +1217,8 @@ public enum RevisionReason */ public static final int ACTIVE_REVISION_LIMIT_REACHED_VALUE = 9; /** + * + * *
      * There was no deployment defined.
      * This value is no longer used, but Services created in older versions of
@@ -1043,6 +1229,8 @@ public enum RevisionReason
      */
     public static final int NO_DEPLOYMENT_VALUE = 10;
     /**
+     *
+     *
      * 
      * A revision's container has no port specified since the revision is of a
      * manually scaled service with 0 instance count
@@ -1052,7 +1240,6 @@ public enum RevisionReason
      */
     public static final int HEALTH_CHECK_SKIPPED_VALUE = 11;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1077,58 +1264,67 @@ public static RevisionReason valueOf(int value) {
      */
     public static RevisionReason forNumber(int value) {
       switch (value) {
-        case 0: return REVISION_REASON_UNDEFINED;
-        case 1: return PENDING;
-        case 2: return RESERVE;
-        case 3: return RETIRED;
-        case 4: return RETIRING;
-        case 5: return RECREATING;
-        case 6: return HEALTH_CHECK_CONTAINER_ERROR;
-        case 7: return CUSTOMIZED_PATH_RESPONSE_PENDING;
-        case 8: return MIN_INSTANCES_NOT_PROVISIONED;
-        case 9: return ACTIVE_REVISION_LIMIT_REACHED;
-        case 10: return NO_DEPLOYMENT;
-        case 11: return HEALTH_CHECK_SKIPPED;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return REVISION_REASON_UNDEFINED;
+        case 1:
+          return PENDING;
+        case 2:
+          return RESERVE;
+        case 3:
+          return RETIRED;
+        case 4:
+          return RETIRING;
+        case 5:
+          return RECREATING;
+        case 6:
+          return HEALTH_CHECK_CONTAINER_ERROR;
+        case 7:
+          return CUSTOMIZED_PATH_RESPONSE_PENDING;
+        case 8:
+          return MIN_INSTANCES_NOT_PROVISIONED;
+        case 9:
+          return ACTIVE_REVISION_LIMIT_REACHED;
+        case 10:
+          return NO_DEPLOYMENT;
+        case 11:
+          return HEALTH_CHECK_SKIPPED;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        RevisionReason> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public RevisionReason findValueByNumber(int number) {
-              return RevisionReason.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 RevisionReason findValueByNumber(int number) {
+            return RevisionReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
     }
 
     private static final RevisionReason[] VALUES = values();
 
-    public static RevisionReason valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static RevisionReason 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;
@@ -1146,15 +1342,18 @@ private RevisionReason(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Reasons specific to Execution resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.ExecutionReason} */ - public enum ExecutionReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -1163,6 +1362,8 @@ public enum ExecutionReason */ EXECUTION_REASON_UNDEFINED(0), /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1171,6 +1372,8 @@ public enum ExecutionReason */ JOB_STATUS_SERVICE_POLLING_ERROR(1), /** + * + * *
      * A task reached its retry limit and the last attempt failed due to the
      * user container exiting with a non-zero exit code.
@@ -1183,6 +1386,8 @@ public enum ExecutionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -1191,6 +1396,8 @@ public enum ExecutionReason */ public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1199,6 +1406,8 @@ public enum ExecutionReason */ public static final int JOB_STATUS_SERVICE_POLLING_ERROR_VALUE = 1; /** + * + * *
      * A task reached its retry limit and the last attempt failed due to the
      * user container exiting with a non-zero exit code.
@@ -1208,7 +1417,6 @@ public enum ExecutionReason
      */
     public static final int NON_ZERO_EXIT_CODE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1233,39 +1441,42 @@ public static ExecutionReason valueOf(int value) {
      */
     public static ExecutionReason forNumber(int value) {
       switch (value) {
-        case 0: return EXECUTION_REASON_UNDEFINED;
-        case 1: return JOB_STATUS_SERVICE_POLLING_ERROR;
-        case 2: return NON_ZERO_EXIT_CODE;
-        default: return null;
+        case 0:
+          return EXECUTION_REASON_UNDEFINED;
+        case 1:
+          return JOB_STATUS_SERVICE_POLLING_ERROR;
+        case 2:
+          return NON_ZERO_EXIT_CODE;
+        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<
-        ExecutionReason> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ExecutionReason findValueByNumber(int number) {
-              return ExecutionReason.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 ExecutionReason findValueByNumber(int number) {
+                return ExecutionReason.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.run.v2.Condition.getDescriptor().getEnumTypes().get(4);
     }
 
@@ -1274,8 +1485,7 @@ public ExecutionReason findValueByNumber(int number) {
     public static ExecutionReason 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;
@@ -1294,14 +1504,17 @@ private ExecutionReason(int value) {
 
   private int reasonsCase_ = 0;
   private java.lang.Object reasons_;
+
   public enum ReasonsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REASON(6),
     REVISION_REASON(9),
     EXECUTION_REASON(11),
     REASONS_NOT_SET(0);
     private final int value;
+
     private ReasonsCase(int value) {
       this.value = value;
     }
@@ -1317,27 +1530,33 @@ public static ReasonsCase valueOf(int value) {
 
     public static ReasonsCase forNumber(int value) {
       switch (value) {
-        case 6: return REASON;
-        case 9: return REVISION_REASON;
-        case 11: return EXECUTION_REASON;
-        case 0: return REASONS_NOT_SET;
-        default: return null;
+        case 6:
+          return REASON;
+        case 9:
+          return REVISION_REASON;
+        case 11:
+          return EXECUTION_REASON;
+        case 0:
+          return REASONS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ReasonsCase
-  getReasonsCase() {
-    return ReasonsCase.forNumber(
-        reasonsCase_);
+  public ReasonsCase getReasonsCase() {
+    return ReasonsCase.forNumber(reasonsCase_);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object type_;
   /**
+   *
+   *
    * 
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1347,6 +1566,7 @@ public int getNumber() {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -1355,14 +1575,15 @@ 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; } } /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1372,16 +1593,15 @@ public java.lang.String getType() {
    * 
* * string type = 1; + * * @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 { @@ -1392,38 +1612,50 @@ public java.lang.String getType() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.run.v2.Condition.State getState() { + @java.lang.Override + public com.google.cloud.run.v2.Condition.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.State result = com.google.cloud.run.v2.Condition.State.valueOf(state_); + com.google.cloud.run.v2.Condition.State result = + com.google.cloud.run.v2.Condition.State.valueOf(state_); return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; + * * @return The message. */ @java.lang.Override @@ -1432,29 +1664,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; } } /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * 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 { @@ -1465,11 +1697,14 @@ public java.lang.String getMessage() { public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastTransitionTime_; /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return Whether the lastTransitionTime field is set. */ @java.lang.Override @@ -1477,18 +1712,25 @@ public boolean hasLastTransitionTime() { return lastTransitionTime_ != null; } /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return The lastTransitionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastTransitionTime() { - return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; } /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -1503,48 +1745,63 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 5; private int severity_; /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.run.v2.Condition.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.run.v2.Condition.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.Severity result = com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); + com.google.cloud.run.v2.Condition.Severity result = + com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 6; /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return Whether the reason field is set. */ public boolean hasReason() { return reasonsCase_ == 6; } /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The enum numeric value on the wire for reason. */ public int getReasonValue() { @@ -1554,18 +1811,21 @@ public int getReasonValue() { return 0; } /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The reason. */ public com.google.cloud.run.v2.Condition.CommonReason getReason() { if (reasonsCase_ == 6) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.CommonReason result = com.google.cloud.run.v2.Condition.CommonReason.valueOf( - (java.lang.Integer) reasons_); + com.google.cloud.run.v2.Condition.CommonReason result = + com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_); return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED; @@ -1573,22 +1833,28 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int REVISION_REASON_FIELD_NUMBER = 9; /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The enum numeric value on the wire for revisionReason. */ public int getRevisionReasonValue() { @@ -1598,41 +1864,52 @@ public int getRevisionReasonValue() { return 0; } /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The revisionReason. */ public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { if (reasonsCase_ == 9) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.RevisionReason result = com.google.cloud.run.v2.Condition.RevisionReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.RevisionReason result = + com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED; } public static final int EXECUTION_REASON_FIELD_NUMBER = 11; /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return Whether the executionReason field is set. */ public boolean hasExecutionReason() { return reasonsCase_ == 11; } /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The enum numeric value on the wire for executionReason. */ public int getExecutionReasonValue() { @@ -1642,24 +1919,30 @@ public int getExecutionReasonValue() { return 0; } /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The executionReason. */ public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() { if (reasonsCase_ == 11) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.ExecutionReason result = com.google.cloud.run.v2.Condition.ExecutionReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.ExecutionReason result = + com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1671,8 +1954,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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -1710,31 +1992,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (lastTransitionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastTransitionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, severity_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_); } if (reasonsCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1744,37 +2023,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.run.v2.Condition)) { return super.equals(obj); } com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj; - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; if (hasLastTransitionTime()) { - if (!getLastTransitionTime() - .equals(other.getLastTransitionTime())) return false; + if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; } if (severity_ != other.severity_) return false; if (!getReasonsCase().equals(other.getReasonsCase())) return false; switch (reasonsCase_) { case 6: - if (getReasonValue() - != other.getReasonValue()) return false; + if (getReasonValue() != other.getReasonValue()) return false; break; case 9: - if (getRevisionReasonValue() - != other.getRevisionReasonValue()) return false; + if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false; break; case 11: - if (getExecutionReasonValue() - != other.getExecutionReasonValue()) return false; + if (getExecutionReasonValue() != other.getExecutionReasonValue()) return false; break; case 0: default: @@ -1823,118 +2096,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Condition parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Condition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Condition 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.run.v2.Condition parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Condition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Condition 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.run.v2.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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.run.v2.Condition 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; } /** + * + * *
    * Defines a status condition for a resource.
    * 
* * Protobuf type {@code google.cloud.run.v2.Condition} */ - 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.run.v2.Condition) com.google.cloud.run.v2.ConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ConditionProto + .internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_fieldAccessorTable + return com.google.cloud.run.v2.ConditionProto + .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.Condition.class, com.google.cloud.run.v2.Condition.Builder.class); + com.google.cloud.run.v2.Condition.class, + com.google.cloud.run.v2.Condition.Builder.class); } // Construct using com.google.cloud.run.v2.Condition.newBuilder() @@ -1942,16 +2223,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(); @@ -1975,9 +2255,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ConditionProto.internal_static_google_cloud_run_v2_Condition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ConditionProto + .internal_static_google_cloud_run_v2_Condition_descriptor; } @java.lang.Override @@ -2024,38 +2304,39 @@ public com.google.cloud.run.v2.Condition 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.run.v2.Condition) { - return mergeFrom((com.google.cloud.run.v2.Condition)other); + return mergeFrom((com.google.cloud.run.v2.Condition) other); } else { super.mergeFrom(other); return this; @@ -2082,21 +2363,25 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: { - setReasonValue(other.getReasonValue()); - break; - } - case REVISION_REASON: { - setRevisionReasonValue(other.getRevisionReasonValue()); - break; - } - case EXECUTION_REASON: { - setExecutionReasonValue(other.getExecutionReasonValue()); - break; - } - case REASONS_NOT_SET: { - break; - } + case REASON: + { + setReasonValue(other.getReasonValue()); + break; + } + case REVISION_REASON: + { + setRevisionReasonValue(other.getRevisionReasonValue()); + break; + } + case EXECUTION_REASON: + { + setExecutionReasonValue(other.getExecutionReasonValue()); + break; + } + case REASONS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2126,12 +2411,12 @@ public Builder mergeFrom( } return this; } + private int reasonsCase_ = 0; private java.lang.Object reasons_; - public ReasonsCase - getReasonsCase() { - return ReasonsCase.forNumber( - reasonsCase_); + + public ReasonsCase getReasonsCase() { + return ReasonsCase.forNumber(reasonsCase_); } public Builder clearReasons() { @@ -2141,9 +2426,10 @@ public Builder clearReasons() { return this; } - private java.lang.Object type_ = ""; /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2153,13 +2439,13 @@ public Builder clearReasons() {
      * 
* * string type = 1; + * * @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; @@ -2168,6 +2454,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2177,15 +2465,14 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @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 { @@ -2193,6 +2480,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2202,20 +2491,22 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @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; } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2225,15 +2516,18 @@ public Builder setType(
      * 
* * string type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2243,16 +2537,16 @@ public Builder clearType() {
      * 
* * string type = 1; + * * @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; @@ -2260,51 +2554,65 @@ public Builder setTypeBytes( private int state_ = 0; /** + * + * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @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; } /** + * + * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.run.v2.Condition.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.State result = com.google.cloud.run.v2.Condition.State.valueOf(state_); + com.google.cloud.run.v2.Condition.State result = + com.google.cloud.run.v2.Condition.State.valueOf(state_); return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result; } /** + * + * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2312,21 +2620,24 @@ public Builder setState(com.google.cloud.run.v2.Condition.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * State of the condition.
      * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2334,18 +2645,20 @@ public Builder clearState() { private java.lang.Object message_ = ""; /** + * + * *
      * Human readable message indicating details about the current status.
      * 
* * 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; @@ -2354,20 +2667,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Human readable message indicating details about the current status.
      * 
* * 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 { @@ -2375,54 +2689,61 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Human readable message indicating details about the current status.
      * 
* * 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; } /** + * + * *
      * Human readable message indicating details about the current status.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
      * Human readable message indicating details about the current status.
      * 
* * 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; @@ -2430,34 +2751,47 @@ public Builder setMessageBytes( private com.google.protobuf.Timestamp lastTransitionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTransitionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastTransitionTimeBuilder_; /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return Whether the lastTransitionTime field is set. */ public boolean hasLastTransitionTime() { return lastTransitionTimeBuilder_ != null || lastTransitionTime_ != null; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return The lastTransitionTime. */ public com.google.protobuf.Timestamp getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { - return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2478,14 +2812,15 @@ public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
* * .google.protobuf.Timestamp last_transition_time = 4; */ - public Builder setLastTransitionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); @@ -2496,6 +2831,8 @@ public Builder setLastTransitionTime( return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2506,7 +2843,9 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { if (lastTransitionTimeBuilder_ == null) { if (lastTransitionTime_ != null) { lastTransitionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastTransitionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastTransitionTime_) + .mergeFrom(value) + .buildPartial(); } else { lastTransitionTime_ = value; } @@ -2518,6 +2857,8 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2536,6 +2877,8 @@ public Builder clearLastTransitionTime() { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2543,11 +2886,13 @@ public Builder clearLastTransitionTime() { * .google.protobuf.Timestamp last_transition_time = 4; */ public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() { - + onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2558,11 +2903,14 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { - return lastTransitionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; } } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2570,14 +2918,17 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { * .google.protobuf.Timestamp last_transition_time = 4; */ 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> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { - lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastTransitionTime(), - getParentForChildren(), - isClean()); + lastTransitionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; @@ -2585,51 +2936,65 @@ public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { private int severity_ = 0; /** + * + * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @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; } /** + * + * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The severity. */ @java.lang.Override public com.google.cloud.run.v2.Condition.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.Severity result = com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); + com.google.cloud.run.v2.Condition.Severity result = + com.google.cloud.run.v2.Condition.Severity.valueOf(severity_); return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result; } /** + * + * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -2637,32 +3002,38 @@ public Builder setSeverity(com.google.cloud.run.v2.Condition.Severity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * How to interpret failures of this condition, one of Error, Warning, Info
      * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return Whether the reason field is set. */ @java.lang.Override @@ -2670,11 +3041,14 @@ public boolean hasReason() { return reasonsCase_ == 6; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The enum numeric value on the wire for reason. */ @java.lang.Override @@ -2685,11 +3059,14 @@ public int getReasonValue() { return 0; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -2700,29 +3077,37 @@ public Builder setReasonValue(int value) { return this; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The reason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.CommonReason getReason() { if (reasonsCase_ == 6) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.CommonReason result = com.google.cloud.run.v2.Condition.CommonReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.CommonReason result = + com.google.cloud.run.v2.Condition.CommonReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @param value The reason to set. * @return This builder for chaining. */ @@ -2736,11 +3121,14 @@ public Builder setReason(com.google.cloud.run.v2.Condition.CommonReason value) { return this; } /** + * + * *
      * A common (service-level) reason for this condition.
      * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -2753,11 +3141,14 @@ public Builder clearReason() { } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ @java.lang.Override @@ -2765,11 +3156,14 @@ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The enum numeric value on the wire for revisionReason. */ @java.lang.Override @@ -2780,11 +3174,14 @@ public int getRevisionReasonValue() { return 0; } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @param value The enum numeric value on the wire for revisionReason to set. * @return This builder for chaining. */ @@ -2795,29 +3192,37 @@ public Builder setRevisionReasonValue(int value) { return this; } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The revisionReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { if (reasonsCase_ == 9) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.RevisionReason result = com.google.cloud.run.v2.Condition.RevisionReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.RevisionReason result = + com.google.cloud.run.v2.Condition.RevisionReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED; } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @param value The revisionReason to set. * @return This builder for chaining. */ @@ -2831,11 +3236,14 @@ public Builder setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReaso return this; } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return This builder for chaining. */ public Builder clearRevisionReason() { @@ -2848,11 +3256,14 @@ public Builder clearRevisionReason() { } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return Whether the executionReason field is set. */ @java.lang.Override @@ -2860,11 +3271,14 @@ public boolean hasExecutionReason() { return reasonsCase_ == 11; } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The enum numeric value on the wire for executionReason. */ @java.lang.Override @@ -2875,11 +3289,14 @@ public int getExecutionReasonValue() { return 0; } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @param value The enum numeric value on the wire for executionReason to set. * @return This builder for chaining. */ @@ -2890,29 +3307,37 @@ public Builder setExecutionReasonValue(int value) { return this; } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The executionReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() { if (reasonsCase_ == 11) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.ExecutionReason result = com.google.cloud.run.v2.Condition.ExecutionReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.ExecutionReason result = + com.google.cloud.run.v2.Condition.ExecutionReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED; } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @param value The executionReason to set. * @return This builder for chaining. */ @@ -2926,11 +3351,14 @@ public Builder setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionRea return this; } /** + * + * *
      * A reason for the execution condition.
      * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return This builder for chaining. */ public Builder clearExecutionReason() { @@ -2941,9 +3369,9 @@ public Builder clearExecutionReason() { } 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); } @@ -2953,12 +3381,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Condition) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Condition) private static final com.google.cloud.run.v2.Condition DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Condition(); } @@ -2967,16 +3395,16 @@ public static com.google.cloud.run.v2.Condition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Condition(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Condition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2991,6 +3419,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java similarity index 84% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java index 759ebdc..9449505 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.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/run/v2/condition.proto package com.google.cloud.run.v2; -public interface ConditionOrBuilder extends +public interface ConditionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Condition) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -17,10 +35,13 @@ public interface ConditionOrBuilder extends
    * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -30,69 +51,88 @@ public interface ConditionOrBuilder extends
    * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The state. */ com.google.cloud.run.v2.Condition.State getState(); /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return Whether the lastTransitionTime field is set. */ boolean hasLastTransitionTime(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return The lastTransitionTime. */ com.google.protobuf.Timestamp getLastTransitionTime(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -102,104 +142,137 @@ public interface ConditionOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The severity. */ com.google.cloud.run.v2.Condition.Severity getSeverity(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return Whether the reason field is set. */ boolean hasReason(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The reason. */ com.google.cloud.run.v2.Condition.CommonReason getReason(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ boolean hasRevisionReason(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The enum numeric value on the wire for revisionReason. */ int getRevisionReasonValue(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The revisionReason. */ com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return Whether the executionReason field is set. */ boolean hasExecutionReason(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The enum numeric value on the wire for executionReason. */ int getExecutionReasonValue(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The executionReason. */ com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java new file mode 100644 index 0000000..32b3c8a --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/condition.proto + +package com.google.cloud.run.v2; + +public final class ConditionProto { + private ConditionProto() {} + + 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_run_v2_Condition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Condition_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/run/v2/condition.proto\022\023g" + + "oogle.cloud.run.v2\032\037google/protobuf/time" + + "stamp.proto\"\325\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + + "(\0162+.google.cloud.run.v2.Condition.Commo" + + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.RevisionReaso" + + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + + "loud.run.v2.Condition.ExecutionReasonH\000\"" + + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + + "\024HEALTH_CHECK_SKIPPED\020\013\"o\n\017ExecutionReas" + + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + + "ZERO_EXIT_CODE\020\002B\t\n\007reasonsBc\n\027com.googl" + + "e.cloud.run.v2B\016ConditionProtoP\001Z6google" + + ".golang.org/genproto/googleapis/cloud/ru" + + "n/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_Condition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_Condition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Condition_descriptor, + new java.lang.String[] { + "Type", + "State", + "Message", + "LastTransitionTime", + "Severity", + "Reason", + "RevisionReason", + "ExecutionReason", + "Reasons", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java index d173f49..1390135 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * A single application container.
  * This specifies both the container to run, the command to run in the container
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Container}
  */
-public final class Container extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Container extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Container)
     ContainerOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Container.newBuilder() to construct.
   private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Container() {
     name_ = "";
     image_ = "";
@@ -35,16 +53,15 @@ private Container() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Container();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Container(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -64,83 +81,95 @@ private Container(
           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();
 
-            image_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              command_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              image_ = s;
+              break;
             }
-            command_.add(s);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              args_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                command_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              command_.add(s);
+              break;
             }
-            args_.add(s);
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              env_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                args_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              args_.add(s);
+              break;
             }
-            env_.add(
-                input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.cloud.run.v2.ResourceRequirements.Builder subBuilder = null;
-            if (resources_ != null) {
-              subBuilder = resources_.toBuilder();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                env_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              env_.add(
+                  input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry));
+              break;
             }
-            resources_ = input.readMessage(com.google.cloud.run.v2.ResourceRequirements.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resources_);
-              resources_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.run.v2.ResourceRequirements.Builder subBuilder = null;
+              if (resources_ != null) {
+                subBuilder = resources_.toBuilder();
+              }
+              resources_ =
+                  input.readMessage(
+                      com.google.cloud.run.v2.ResourceRequirements.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resources_);
+                resources_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              ports_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                ports_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              ports_.add(
+                  input.readMessage(
+                      com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry));
+              break;
             }
-            ports_.add(
-                input.readMessage(com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry));
-            break;
-          }
-          case 66: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              volumeMounts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 66:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                volumeMounts_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              volumeMounts_.add(
+                  input.readMessage(
+                      com.google.cloud.run.v2.VolumeMount.parser(), extensionRegistry));
+              break;
             }
-            volumeMounts_.add(
-                input.readMessage(com.google.cloud.run.v2.VolumeMount.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) {
@@ -148,8 +177,7 @@ private Container(
     } 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)) {
         command_ = command_.getUnmodifiableView();
@@ -170,27 +198,33 @@ private Container(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_Container_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_Container_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.Container.class, com.google.cloud.run.v2.Container.Builder.class);
+            com.google.cloud.run.v2.Container.class,
+            com.google.cloud.run.v2.Container.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -199,29 +233,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; } } /** + * + * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * 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 { @@ -232,12 +266,15 @@ public java.lang.String getName() { public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ @java.lang.Override @@ -246,30 +283,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -280,6 +317,8 @@ public java.lang.String getImage() { public static final int COMMAND_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList command_; /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -293,13 +332,15 @@ public java.lang.String getImage() {
    * 
* * repeated string command = 3; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -313,12 +354,15 @@ public java.lang.String getImage() {
    * 
* * repeated string command = 3; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -332,6 +376,7 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -339,6 +384,8 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -352,17 +399,19 @@ public java.lang.String getCommand(int index) {
    * 
* * repeated string command = 3; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -376,13 +425,15 @@ public java.lang.String getCommand(int index) {
    * 
* * repeated string args = 4; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -396,12 +447,15 @@ public java.lang.String getCommand(int index) {
    * 
* * repeated string args = 4; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -415,6 +469,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -422,6 +477,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -435,17 +492,19 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 4; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 5; private java.util.List env_; /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -457,6 +516,8 @@ public java.util.List getEnvList() { return env_; } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -464,11 +525,12 @@ public java.util.List getEnvList() { * repeated .google.cloud.run.v2.EnvVar env = 5; */ @java.lang.Override - public java.util.List - getEnvOrBuilderList() { + public java.util.List getEnvOrBuilderList() { return env_; } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -480,6 +542,8 @@ public int getEnvCount() { return env_.size(); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -491,6 +555,8 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -498,14 +564,15 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { * repeated .google.cloud.run.v2.EnvVar env = 5; */ @java.lang.Override - public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( - int index) { + public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { return env_.get(index); } public static final int RESOURCES_FIELD_NUMBER = 6; private com.google.cloud.run.v2.ResourceRequirements resources_; /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -513,6 +580,7 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return Whether the resources field is set. */ @java.lang.Override @@ -520,6 +588,8 @@ public boolean hasResources() { return resources_ != null; } /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -527,13 +597,18 @@ public boolean hasResources() {
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return The resources. */ @java.lang.Override public com.google.cloud.run.v2.ResourceRequirements getResources() { - return resources_ == null ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_; + return resources_ == null + ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() + : resources_; } /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -550,6 +625,8 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
   public static final int PORTS_FIELD_NUMBER = 7;
   private java.util.List ports_;
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -565,6 +642,8 @@ public java.util.List getPortsList() {
     return ports_;
   }
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -576,11 +655,13 @@ public java.util.List getPortsList() {
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPortsOrBuilderList() {
     return ports_;
   }
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -596,6 +677,8 @@ public int getPortsCount() {
     return ports_.size();
   }
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -611,6 +694,8 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
     return ports_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -622,14 +707,15 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
-      int index) {
+  public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index) {
     return ports_.get(index);
   }
 
   public static final int VOLUME_MOUNTS_FIELD_NUMBER = 8;
   private java.util.List volumeMounts_;
   /**
+   *
+   *
    * 
    * Volume to mount into the container's filesystem.
    * 
@@ -641,6 +727,8 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -648,11 +736,13 @@ public java.util.List getVolumeMountsList() * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ @java.lang.Override - public java.util.List + public java.util.List getVolumeMountsOrBuilderList() { return volumeMounts_; } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -664,6 +754,8 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -675,6 +767,8 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -682,12 +776,12 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { return volumeMounts_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -699,8 +793,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_); } @@ -757,20 +850,16 @@ public int getSerializedSize() { size += 1 * getArgsList().size(); } for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, env_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, env_.get(i)); } if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getResources()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getResources()); } for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ports_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, ports_.get(i)); } for (int i = 0; i < volumeMounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, volumeMounts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, volumeMounts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -780,32 +869,24 @@ 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.run.v2.Container)) { return super.equals(obj); } com.google.cloud.run.v2.Container other = (com.google.cloud.run.v2.Container) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getEnvList() - .equals(other.getEnvList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getImage().equals(other.getImage())) return false; + if (!getCommandList().equals(other.getCommandList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getEnvList().equals(other.getEnvList())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; + if (!getResources().equals(other.getResources())) return false; } - if (!getPortsList() - .equals(other.getPortsList())) return false; - if (!getVolumeMountsList() - .equals(other.getVolumeMountsList())) return false; + if (!getPortsList().equals(other.getPortsList())) return false; + if (!getVolumeMountsList().equals(other.getVolumeMountsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -850,97 +931,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Container parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Container parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Container 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.run.v2.Container parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Container parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Container 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.run.v2.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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.run.v2.Container 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; } /** + * + * *
    * A single application container.
    * This specifies both the container to run, the command to run in the container
@@ -951,21 +1038,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Container}
    */
-  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.run.v2.Container)
       com.google.cloud.run.v2.ContainerOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Container_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Container_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.Container.class, com.google.cloud.run.v2.Container.Builder.class);
+              com.google.cloud.run.v2.Container.class,
+              com.google.cloud.run.v2.Container.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Container.newBuilder()
@@ -973,19 +1062,19 @@ 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) {
         getEnvFieldBuilder();
         getPortsFieldBuilder();
         getVolumeMountsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1025,9 +1114,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Container_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Container_descriptor;
     }
 
     @java.lang.Override
@@ -1100,38 +1189,39 @@ public com.google.cloud.run.v2.Container 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.run.v2.Container) {
-        return mergeFrom((com.google.cloud.run.v2.Container)other);
+        return mergeFrom((com.google.cloud.run.v2.Container) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1186,9 +1276,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             envBuilder_ = null;
             env_ = other.env_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            envBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEnvFieldBuilder() : null;
+            envBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEnvFieldBuilder()
+                    : null;
           } else {
             envBuilder_.addAllMessages(other.env_);
           }
@@ -1215,9 +1306,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             portsBuilder_ = null;
             ports_ = other.ports_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            portsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPortsFieldBuilder() : null;
+            portsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPortsFieldBuilder()
+                    : null;
           } else {
             portsBuilder_.addAllMessages(other.ports_);
           }
@@ -1241,9 +1333,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) {
             volumeMountsBuilder_ = null;
             volumeMounts_ = other.volumeMounts_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            volumeMountsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVolumeMountsFieldBuilder() : null;
+            volumeMountsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVolumeMountsFieldBuilder()
+                    : null;
           } else {
             volumeMountsBuilder_.addAllMessages(other.volumeMounts_);
           }
@@ -1277,22 +1370,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; @@ -1301,20 +1397,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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 { @@ -1322,54 +1419,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; } /** + * + * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the container specified as a DNS_LABEL.
      * 
* * 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; @@ -1377,19 +1481,21 @@ public Builder setNameBytes( private java.lang.Object image_ = ""; /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1398,21 +1504,22 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1420,70 +1527,81 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList command_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1497,13 +1615,15 @@ private void ensureCommandIsMutable() {
      * 
* * repeated string command = 3; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1517,12 +1637,15 @@ private void ensureCommandIsMutable() {
      * 
* * repeated string command = 3; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1536,6 +1659,7 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1543,6 +1667,8 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1556,14 +1682,16 @@ public java.lang.String getCommand(int index) {
      * 
* * repeated string command = 3; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1577,21 +1705,23 @@ public java.lang.String getCommand(int index) {
      * 
* * repeated string command = 3; + * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand( - int index, java.lang.String value) { + public Builder setCommand(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); + throw new NullPointerException(); + } + ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1605,20 +1735,22 @@ public Builder setCommand(
      * 
* * repeated string command = 3; + * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand( - java.lang.String value) { + public Builder addCommand(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); + throw new NullPointerException(); + } + ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1632,18 +1764,19 @@ public Builder addCommand(
      * 
* * repeated string command = 3; + * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand( - java.lang.Iterable values) { + public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1657,6 +1790,7 @@ public Builder addAllCommand(
      * 
* * repeated string command = 3; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1666,6 +1800,8 @@ public Builder clearCommand() { return this; } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1679,29 +1815,33 @@ public Builder clearCommand() {
      * 
* * repeated string command = 3; + * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { + public Builder addCommandBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1715,13 +1855,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 4; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1735,12 +1877,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 4; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1754,6 +1899,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1761,6 +1907,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1774,14 +1922,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 4; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1795,21 +1945,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 4; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1823,20 +1975,22 @@ public Builder setArgs(
      * 
* * repeated string args = 4; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1850,18 +2004,19 @@ public Builder addArgs(
      * 
* * repeated string args = 4; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1875,6 +2030,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 4; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1884,6 +2040,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1897,34 +2055,39 @@ public Builder clearArgs() {
      * 
* * repeated string args = 4; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private java.util.List env_ = - java.util.Collections.emptyList(); + private java.util.List env_ = java.util.Collections.emptyList(); + private void ensureEnvIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { env_ = new java.util.ArrayList(env_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder> envBuilder_; + com.google.cloud.run.v2.EnvVar, + com.google.cloud.run.v2.EnvVar.Builder, + com.google.cloud.run.v2.EnvVarOrBuilder> + envBuilder_; /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1939,6 +2102,8 @@ public java.util.List getEnvList() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1953,6 +2118,8 @@ public int getEnvCount() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1967,14 +2134,15 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder setEnv( - int index, com.google.cloud.run.v2.EnvVar value) { + public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1988,14 +2156,15 @@ public Builder setEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder setEnv( - int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder setEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.set(index, builderForValue.build()); @@ -2006,6 +2175,8 @@ public Builder setEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2026,14 +2197,15 @@ public Builder addEnv(com.google.cloud.run.v2.EnvVar value) { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv( - int index, com.google.cloud.run.v2.EnvVar value) { + public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2047,14 +2219,15 @@ public Builder addEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv( - com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder addEnv(com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(builderForValue.build()); @@ -2065,14 +2238,15 @@ public Builder addEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addEnv( - int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { + public Builder addEnv(int index, com.google.cloud.run.v2.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(index, builderForValue.build()); @@ -2083,18 +2257,18 @@ public Builder addEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public Builder addAllEnv( - java.lang.Iterable values) { + public Builder addAllEnv(java.lang.Iterable values) { if (envBuilder_ == null) { ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); onChanged(); } else { envBuilder_.addAllMessages(values); @@ -2102,6 +2276,8 @@ public Builder addAllEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2119,6 +2295,8 @@ public Builder clearEnv() { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2136,39 +2314,43 @@ public Builder removeEnv(int index) { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVar.Builder getEnvBuilder( - int index) { + public com.google.cloud.run.v2.EnvVar.Builder getEnvBuilder(int index) { return getEnvFieldBuilder().getBuilder(index); } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( - int index) { + public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { if (envBuilder_ == null) { - return env_.get(index); } else { + return env_.get(index); + } else { return envBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public java.util.List - getEnvOrBuilderList() { + public java.util.List getEnvOrBuilderList() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilderList(); } else { @@ -2176,6 +2358,8 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2183,42 +2367,46 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( * repeated .google.cloud.run.v2.EnvVar env = 5; */ public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder( - com.google.cloud.run.v2.EnvVar.getDefaultInstance()); + return getEnvFieldBuilder().addBuilder(com.google.cloud.run.v2.EnvVar.getDefaultInstance()); } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder( - int index) { - return getEnvFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.EnvVar.getDefaultInstance()); + public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder(int index) { + return getEnvFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.EnvVar.getDefaultInstance()); } /** + * + * *
      * List of environment variables to set in the container.
      * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - public java.util.List - getEnvBuilderList() { + public java.util.List getEnvBuilderList() { return getEnvFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder> + com.google.cloud.run.v2.EnvVar, + com.google.cloud.run.v2.EnvVar.Builder, + com.google.cloud.run.v2.EnvVarOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { - envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder>( - env_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + envBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.EnvVar, + com.google.cloud.run.v2.EnvVar.Builder, + com.google.cloud.run.v2.EnvVarOrBuilder>( + env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -2226,8 +2414,13 @@ public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder( private com.google.cloud.run.v2.ResourceRequirements resources_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder> resourcesBuilder_; + com.google.cloud.run.v2.ResourceRequirements, + com.google.cloud.run.v2.ResourceRequirements.Builder, + com.google.cloud.run.v2.ResourceRequirementsOrBuilder> + resourcesBuilder_; /** + * + * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2235,12 +2428,15 @@ public com.google.cloud.run.v2.EnvVar.Builder addEnvBuilder(
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** + * + * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2248,16 +2444,21 @@ public boolean hasResources() {
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return The resources. */ public com.google.cloud.run.v2.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { - return resources_ == null ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_; + return resources_ == null + ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() + : resources_; } else { return resourcesBuilder_.getMessage(); } } /** + * + * *
      * Compute Resource requirements by this container.
      * More info:
@@ -2280,6 +2481,8 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2300,6 +2503,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2312,7 +2517,9 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       if (resourcesBuilder_ == null) {
         if (resources_ != null) {
           resources_ =
-            com.google.cloud.run.v2.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial();
+              com.google.cloud.run.v2.ResourceRequirements.newBuilder(resources_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resources_ = value;
         }
@@ -2324,6 +2531,8 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2344,6 +2553,8 @@ public Builder clearResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2353,11 +2564,13 @@ public Builder clearResources() {
      * .google.cloud.run.v2.ResourceRequirements resources = 6;
      */
     public com.google.cloud.run.v2.ResourceRequirements.Builder getResourcesBuilder() {
-      
+
       onChanged();
       return getResourcesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2370,11 +2583,14 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
       if (resourcesBuilder_ != null) {
         return resourcesBuilder_.getMessageOrBuilder();
       } else {
-        return resources_ == null ?
-            com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance() : resources_;
+        return resources_ == null
+            ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()
+            : resources_;
       }
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2384,32 +2600,41 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild
      * .google.cloud.run.v2.ResourceRequirements resources = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder> 
+            com.google.cloud.run.v2.ResourceRequirements,
+            com.google.cloud.run.v2.ResourceRequirements.Builder,
+            com.google.cloud.run.v2.ResourceRequirementsOrBuilder>
         getResourcesFieldBuilder() {
       if (resourcesBuilder_ == null) {
-        resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.ResourceRequirements, com.google.cloud.run.v2.ResourceRequirements.Builder, com.google.cloud.run.v2.ResourceRequirementsOrBuilder>(
-                getResources(),
-                getParentForChildren(),
-                isClean());
+        resourcesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.ResourceRequirements,
+                com.google.cloud.run.v2.ResourceRequirements.Builder,
+                com.google.cloud.run.v2.ResourceRequirementsOrBuilder>(
+                getResources(), getParentForChildren(), isClean());
         resources_ = null;
       }
       return resourcesBuilder_;
     }
 
     private java.util.List ports_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePortsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         ports_ = new java.util.ArrayList(ports_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder> portsBuilder_;
+            com.google.cloud.run.v2.ContainerPort,
+            com.google.cloud.run.v2.ContainerPort.Builder,
+            com.google.cloud.run.v2.ContainerPortOrBuilder>
+        portsBuilder_;
 
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2428,6 +2653,8 @@ public java.util.List getPortsList() {
       }
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2446,6 +2673,8 @@ public int getPortsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2464,6 +2693,8 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2474,8 +2705,7 @@ public com.google.cloud.run.v2.ContainerPort getPorts(int index) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder setPorts(
-        int index, com.google.cloud.run.v2.ContainerPort value) {
+    public Builder setPorts(int index, com.google.cloud.run.v2.ContainerPort value) {
       if (portsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2489,6 +2719,8 @@ public Builder setPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2511,6 +2743,8 @@ public Builder setPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2535,6 +2769,8 @@ public Builder addPorts(com.google.cloud.run.v2.ContainerPort value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2545,8 +2781,7 @@ public Builder addPorts(com.google.cloud.run.v2.ContainerPort value) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder addPorts(
-        int index, com.google.cloud.run.v2.ContainerPort value) {
+    public Builder addPorts(int index, com.google.cloud.run.v2.ContainerPort value) {
       if (portsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2560,6 +2795,8 @@ public Builder addPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2570,8 +2807,7 @@ public Builder addPorts(
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public Builder addPorts(
-        com.google.cloud.run.v2.ContainerPort.Builder builderForValue) {
+    public Builder addPorts(com.google.cloud.run.v2.ContainerPort.Builder builderForValue) {
       if (portsBuilder_ == null) {
         ensurePortsIsMutable();
         ports_.add(builderForValue.build());
@@ -2582,6 +2818,8 @@ public Builder addPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2604,6 +2842,8 @@ public Builder addPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2618,8 +2858,7 @@ public Builder addAllPorts(
         java.lang.Iterable values) {
       if (portsBuilder_ == null) {
         ensurePortsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, ports_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_);
         onChanged();
       } else {
         portsBuilder_.addAllMessages(values);
@@ -2627,6 +2866,8 @@ public Builder addAllPorts(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2648,6 +2889,8 @@ public Builder clearPorts() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2669,6 +2912,8 @@ public Builder removePorts(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2679,11 +2924,12 @@ public Builder removePorts(int index) {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(
-        int index) {
+    public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(int index) {
       return getPortsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2694,14 +2940,16 @@ public com.google.cloud.run.v2.ContainerPort.Builder getPortsBuilder(
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
-        int index) {
+    public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index) {
       if (portsBuilder_ == null) {
-        return ports_.get(index);  } else {
+        return ports_.get(index);
+      } else {
         return portsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2712,8 +2960,8 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public java.util.List 
-         getPortsOrBuilderList() {
+    public java.util.List
+        getPortsOrBuilderList() {
       if (portsBuilder_ != null) {
         return portsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2721,6 +2969,8 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2732,10 +2982,12 @@ public com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
     public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder() {
-      return getPortsFieldBuilder().addBuilder(
-          com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
+      return getPortsFieldBuilder()
+          .addBuilder(com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2746,12 +2998,13 @@ public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder() {
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(
-        int index) {
-      return getPortsFieldBuilder().addBuilder(
-          index, com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
+    public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(int index) {
+      return getPortsFieldBuilder()
+          .addBuilder(index, com.google.cloud.run.v2.ContainerPort.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of ports to expose from the container. Only a single port can be
      * specified. The specified ports must be listening on all interfaces
@@ -2762,38 +3015,46 @@ public com.google.cloud.run.v2.ContainerPort.Builder addPortsBuilder(
      *
      * repeated .google.cloud.run.v2.ContainerPort ports = 7;
      */
-    public java.util.List 
-         getPortsBuilderList() {
+    public java.util.List getPortsBuilderList() {
       return getPortsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder> 
+            com.google.cloud.run.v2.ContainerPort,
+            com.google.cloud.run.v2.ContainerPort.Builder,
+            com.google.cloud.run.v2.ContainerPortOrBuilder>
         getPortsFieldBuilder() {
       if (portsBuilder_ == null) {
-        portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder>(
-                ports_,
-                ((bitField0_ & 0x00000008) != 0),
-                getParentForChildren(),
-                isClean());
+        portsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.run.v2.ContainerPort,
+                com.google.cloud.run.v2.ContainerPort.Builder,
+                com.google.cloud.run.v2.ContainerPortOrBuilder>(
+                ports_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         ports_ = null;
       }
       return portsBuilder_;
     }
 
     private java.util.List volumeMounts_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureVolumeMountsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
         volumeMounts_ = new java.util.ArrayList(volumeMounts_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder> volumeMountsBuilder_;
+            com.google.cloud.run.v2.VolumeMount,
+            com.google.cloud.run.v2.VolumeMount.Builder,
+            com.google.cloud.run.v2.VolumeMountOrBuilder>
+        volumeMountsBuilder_;
 
     /**
+     *
+     *
      * 
      * Volume to mount into the container's filesystem.
      * 
@@ -2808,6 +3069,8 @@ public java.util.List getVolumeMountsList() } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2822,6 +3085,8 @@ public int getVolumeMountsCount() { } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2836,14 +3101,15 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder setVolumeMounts( - int index, com.google.cloud.run.v2.VolumeMount value) { + public Builder setVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2857,6 +3123,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2875,6 +3143,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2895,14 +3165,15 @@ public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount value) { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder addVolumeMounts( - int index, com.google.cloud.run.v2.VolumeMount value) { + public Builder addVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2916,14 +3187,15 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public Builder addVolumeMounts( - com.google.cloud.run.v2.VolumeMount.Builder builderForValue) { + public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(builderForValue.build()); @@ -2934,6 +3206,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2952,6 +3226,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2962,8 +3238,7 @@ public Builder addAllVolumeMounts( java.lang.Iterable values) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumeMounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeMounts_); onChanged(); } else { volumeMountsBuilder_.addAllMessages(values); @@ -2971,6 +3246,8 @@ public Builder addAllVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2988,6 +3265,8 @@ public Builder clearVolumeMounts() { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3005,39 +3284,44 @@ public Builder removeVolumeMounts(int index) { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMount.Builder getVolumeMountsBuilder( - int index) { + public com.google.cloud.run.v2.VolumeMount.Builder getVolumeMountsBuilder(int index) { return getVolumeMountsFieldBuilder().getBuilder(index); } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { if (volumeMountsBuilder_ == null) { - return volumeMounts_.get(index); } else { + return volumeMounts_.get(index); + } else { return volumeMountsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public java.util.List - getVolumeMountsOrBuilderList() { + public java.util.List + getVolumeMountsOrBuilderList() { if (volumeMountsBuilder_ != null) { return volumeMountsBuilder_.getMessageOrBuilderList(); } else { @@ -3045,6 +3329,8 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3052,49 +3338,55 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder() { - return getVolumeMountsFieldBuilder().addBuilder( - com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); + return getVolumeMountsFieldBuilder() + .addBuilder(com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder( - int index) { - return getVolumeMountsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); + public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(int index) { + return getVolumeMountsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.VolumeMount.getDefaultInstance()); } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - public java.util.List - getVolumeMountsBuilderList() { + public java.util.List + getVolumeMountsBuilderList() { return getVolumeMountsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder> + com.google.cloud.run.v2.VolumeMount, + com.google.cloud.run.v2.VolumeMount.Builder, + com.google.cloud.run.v2.VolumeMountOrBuilder> getVolumeMountsFieldBuilder() { if (volumeMountsBuilder_ == null) { - volumeMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder>( - volumeMounts_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + volumeMountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.VolumeMount, + com.google.cloud.run.v2.VolumeMount.Builder, + com.google.cloud.run.v2.VolumeMountOrBuilder>( + volumeMounts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); volumeMounts_ = null; } return volumeMountsBuilder_; } + @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); } @@ -3104,12 +3396,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Container) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Container) private static final com.google.cloud.run.v2.Container DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Container(); } @@ -3118,16 +3410,16 @@ public static com.google.cloud.run.v2.Container getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Container(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3142,6 +3434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java similarity index 88% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java index 7e227a9..893005e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java @@ -1,55 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ContainerOrBuilder extends +public interface ContainerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Container) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -63,11 +91,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -81,10 +111,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -98,11 +131,14 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -116,13 +152,15 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -136,11 +174,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -154,10 +194,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -171,11 +214,14 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -189,22 +235,25 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List - getEnvList(); + java.util.List getEnvList(); /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -213,6 +262,8 @@ public interface ContainerOrBuilder extends */ com.google.cloud.run.v2.EnvVar getEnv(int index); /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -221,25 +272,29 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List - getEnvOrBuilderList(); + java.util.List getEnvOrBuilderList(); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( - int index); + com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -247,10 +302,13 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return Whether the resources field is set. */ boolean hasResources(); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -258,10 +316,13 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return The resources. */ com.google.cloud.run.v2.ResourceRequirements getResources(); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -273,6 +334,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
   com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -283,9 +346,10 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List 
-      getPortsList();
+  java.util.List getPortsList();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -298,6 +362,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    */
   com.google.cloud.run.v2.ContainerPort getPorts(int index);
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -310,6 +376,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    */
   int getPortsCount();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -320,9 +388,10 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List 
-      getPortsOrBuilderList();
+  java.util.List getPortsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -333,19 +402,21 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List - getVolumeMountsList(); + java.util.List getVolumeMountsList(); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -354,6 +425,8 @@ com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder( */ com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -362,21 +435,24 @@ com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder( */ int getVolumeMountsCount(); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List + java.util.List getVolumeMountsOrBuilderList(); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( - int index); + com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java index e44745f..2413f62 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * ContainerPort represents a network port in a single container.
  * 
* * Protobuf type {@code google.cloud.run.v2.ContainerPort} */ -public final class ContainerPort extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ContainerPort extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ContainerPort) ContainerPortOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContainerPort.newBuilder() to construct. private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ContainerPort() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContainerPort(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ContainerPort( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ContainerPort( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - containerPort_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 24: + { + containerPort_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,35 +96,40 @@ private ContainerPort( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ContainerPort.class, com.google.cloud.run.v2.ContainerPort.Builder.class); + com.google.cloud.run.v2.ContainerPort.class, + com.google.cloud.run.v2.ContainerPort.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * 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; } } /** + * + * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * 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 CONTAINER_PORT_FIELD_NUMBER = 3; private int containerPort_; /** + * + * *
    * Port number the container listens on.
    * This must be a valid TCP port number, 0 < container_port < 65536.
    * 
* * int32 container_port = 3; + * * @return The containerPort. */ @java.lang.Override @@ -163,6 +189,7 @@ public int getContainerPort() { } 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 (containerPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, containerPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, containerPort_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +231,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.run.v2.ContainerPort)) { return super.equals(obj); } com.google.cloud.run.v2.ContainerPort other = (com.google.cloud.run.v2.ContainerPort) obj; - if (!getName() - .equals(other.getName())) return false; - if (getContainerPort() - != other.getContainerPort()) return false; + if (!getName().equals(other.getName())) return false; + if (getContainerPort() != other.getContainerPort()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,118 +260,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ContainerPort parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ContainerPort parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.ContainerPort parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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.run.v2.ContainerPort 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; } /** + * + * *
    * ContainerPort represents a network port in a single container.
    * 
* * Protobuf type {@code google.cloud.run.v2.ContainerPort} */ - 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.run.v2.ContainerPort) com.google.cloud.run.v2.ContainerPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ContainerPort.class, com.google.cloud.run.v2.ContainerPort.Builder.class); + com.google.cloud.run.v2.ContainerPort.class, + com.google.cloud.run.v2.ContainerPort.Builder.class); } // Construct using com.google.cloud.run.v2.ContainerPort.newBuilder() @@ -356,16 +387,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(); @@ -377,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ContainerPort_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ContainerPort_descriptor; } @java.lang.Override @@ -398,7 +428,8 @@ public com.google.cloud.run.v2.ContainerPort build() { @java.lang.Override public com.google.cloud.run.v2.ContainerPort buildPartial() { - com.google.cloud.run.v2.ContainerPort result = new com.google.cloud.run.v2.ContainerPort(this); + com.google.cloud.run.v2.ContainerPort result = + new com.google.cloud.run.v2.ContainerPort(this); result.name_ = name_; result.containerPort_ = containerPort_; onBuilt(); @@ -409,38 +440,39 @@ public com.google.cloud.run.v2.ContainerPort 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.run.v2.ContainerPort) { - return mergeFrom((com.google.cloud.run.v2.ContainerPort)other); + return mergeFrom((com.google.cloud.run.v2.ContainerPort) other); } else { super.mergeFrom(other); return this; @@ -487,19 +519,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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; @@ -508,21 +542,22 @@ public java.lang.String getName() { } } /** + * + * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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 { @@ -530,70 +565,80 @@ public java.lang.String getName() { } } /** + * + * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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; } /** + * + * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * If specified, used to specify which protocol to use.
      * Allowed values are "http1" and "h2c".
      * 
* * 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 int containerPort_ ; + private int containerPort_; /** + * + * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; + * * @return The containerPort. */ @java.lang.Override @@ -601,39 +646,45 @@ public int getContainerPort() { return containerPort_; } /** + * + * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; + * * @param value The containerPort to set. * @return This builder for chaining. */ public Builder setContainerPort(int value) { - + containerPort_ = value; onChanged(); return this; } /** + * + * *
      * Port number the container listens on.
      * This must be a valid TCP port number, 0 < container_port < 65536.
      * 
* * int32 container_port = 3; + * * @return This builder for chaining. */ public Builder clearContainerPort() { - + containerPort_ = 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); } @@ -643,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ContainerPort) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ContainerPort) private static final com.google.cloud.run.v2.ContainerPort DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ContainerPort(); } @@ -657,16 +708,16 @@ public static com.google.cloud.run.v2.ContainerPort getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerPort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerPort(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ContainerPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java index 10acaad..20e42eb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ContainerPortOrBuilder extends +public interface ContainerPortOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ContainerPort) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * If specified, used to specify which protocol to use.
    * Allowed values are "http1" and "h2c".
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Port number the container listens on.
    * This must be a valid TCP port number, 0 < container_port < 65536.
    * 
* * int32 container_port = 3; + * * @return The containerPort. */ int getContainerPort(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java index b3419ed..d03f95d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for creating a Service.
  * 
* * Protobuf type {@code google.cloud.run.v2.CreateServiceRequest} */ -public final class CreateServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CreateServiceRequest) CreateServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateServiceRequest.newBuilder() to construct. private CreateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateServiceRequest() { parent_ = ""; serviceId_ = ""; @@ -26,16 +44,15 @@ private CreateServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,43 +71,47 @@ private CreateServiceRequest( 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.run.v2.Service.Builder subBuilder = null; - if (service_ != null) { - subBuilder = service_.toBuilder(); - } - service_ = input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(service_); - service_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.run.v2.Service.Builder subBuilder = null; + if (service_ != null) { + subBuilder = service_.toBuilder(); + } + service_ = + input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(service_); + service_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceId_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + serviceId_ = s; + break; + } + case 32: + { + validateOnly_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,35 +119,42 @@ private CreateServiceRequest( } 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateServiceRequest.class, com.google.cloud.run.v2.CreateServiceRequest.Builder.class); + com.google.cloud.run.v2.CreateServiceRequest.class, + com.google.cloud.run.v2.CreateServiceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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,30 +163,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 location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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,11 +199,15 @@ public java.lang.String getParent() { public static final int SERVICE_FIELD_NUMBER = 2; private com.google.cloud.run.v2.Service service_; /** + * + * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ @java.lang.Override @@ -181,11 +215,15 @@ public boolean hasService() { return service_ != null; } /** + * + * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ @java.lang.Override @@ -193,11 +231,14 @@ public com.google.cloud.run.v2.Service getService() { return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } /** + * + * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { @@ -207,12 +248,15 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int SERVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object serviceId_; /** + * + * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serviceId. */ @java.lang.Override @@ -221,30 +265,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -255,12 +299,15 @@ public java.lang.String getServiceId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or creating any resources.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -269,6 +316,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,8 +328,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_); } @@ -307,15 +354,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (service_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getService()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -325,24 +370,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.run.v2.CreateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.CreateServiceRequest other = (com.google.cloud.run.v2.CreateServiceRequest) obj; + com.google.cloud.run.v2.CreateServiceRequest other = + (com.google.cloud.run.v2.CreateServiceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; } - if (!getServiceId() - .equals(other.getServiceId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (!getServiceId().equals(other.getServiceId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,125 +405,133 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.CreateServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.CreateServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.CreateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest 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 message for creating a Service.
    * 
* * Protobuf type {@code google.cloud.run.v2.CreateServiceRequest} */ - 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.run.v2.CreateServiceRequest) com.google.cloud.run.v2.CreateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateServiceRequest.class, com.google.cloud.run.v2.CreateServiceRequest.Builder.class); + com.google.cloud.run.v2.CreateServiceRequest.class, + com.google.cloud.run.v2.CreateServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.CreateServiceRequest.newBuilder() @@ -489,16 +539,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(); @@ -518,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; } @java.lang.Override @@ -539,7 +588,8 @@ public com.google.cloud.run.v2.CreateServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.CreateServiceRequest buildPartial() { - com.google.cloud.run.v2.CreateServiceRequest result = new com.google.cloud.run.v2.CreateServiceRequest(this); + com.google.cloud.run.v2.CreateServiceRequest result = + new com.google.cloud.run.v2.CreateServiceRequest(this); result.parent_ = parent_; if (serviceBuilder_ == null) { result.service_ = service_; @@ -556,38 +606,39 @@ public com.google.cloud.run.v2.CreateServiceRequest 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.run.v2.CreateServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.CreateServiceRequest)other); + return mergeFrom((com.google.cloud.run.v2.CreateServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -641,19 +692,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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; @@ -662,21 +717,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 { @@ -684,57 +742,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 location and project in which this service should be created.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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; @@ -742,24 +813,35 @@ public Builder setParentBytes( private com.google.cloud.run.v2.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> serviceBuilder_; + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> + serviceBuilder_; /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ public com.google.cloud.run.v2.Service getService() { @@ -770,11 +852,14 @@ public com.google.cloud.run.v2.Service getService() { } } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { @@ -790,14 +875,16 @@ public Builder setService(com.google.cloud.run.v2.Service value) { return this; } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setService( - com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); @@ -808,17 +895,20 @@ public Builder setService( return this; } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = - com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } @@ -830,11 +920,14 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { return this; } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearService() { if (serviceBuilder_ == null) { @@ -848,48 +941,59 @@ public Builder clearService() { return this; } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? - com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** + * + * *
      * Required. The Service instance to create.
      * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), - getParentForChildren(), - isClean()); + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; @@ -897,19 +1001,21 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private java.lang.Object serviceId_ = ""; /** + * + * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -918,21 +1024,22 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -940,70 +1047,80 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId( - java.lang.String value) { + public Builder setServiceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearServiceId() { - + serviceId_ = getDefaultInstance().getServiceId(); onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the Service. The name of the service becomes
      * {parent}/services/{service_id}.
      * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceId_ = value; onChanged(); return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -1011,39 +1128,45 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or creating any resources.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = 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); } @@ -1053,12 +1176,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CreateServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CreateServiceRequest) private static final com.google.cloud.run.v2.CreateServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.CreateServiceRequest(); } @@ -1067,16 +1190,16 @@ public static com.google.cloud.run.v2.CreateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1091,6 +1214,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java index bd98230..f55c7a4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java @@ -1,90 +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/run/v2/service.proto package com.google.cloud.run.v2; -public interface CreateServiceRequestOrBuilder extends +public interface CreateServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CreateServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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 location and project in which this service should be created.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ boolean hasService(); /** + * + * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ com.google.cloud.run.v2.Service getService(); /** + * + * *
    * Required. The Service instance to create.
    * 
* - * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** + * + * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serviceId. */ java.lang.String getServiceId(); /** + * + * *
    * Required. The unique identifier for the Service. The name of the service becomes
    * {parent}/services/{service_id}.
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString - getServiceIdBytes(); + com.google.protobuf.ByteString getServiceIdBytes(); /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or creating any resources.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java index c86f814..0062cca 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for deleting a retired Revision.
  * Revision lifecycle is usually managed by making changes to the parent
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.DeleteRevisionRequest}
  */
-public final class DeleteRevisionRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteRevisionRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteRevisionRequest)
     DeleteRevisionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteRevisionRequest.newBuilder() to construct.
   private DeleteRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteRevisionRequest() {
     name_ = "";
     etag_ = "";
@@ -28,16 +46,15 @@ private DeleteRevisionRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteRevisionRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteRevisionRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,30 +73,32 @@ private DeleteRevisionRequest(
           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: {
-
-            validateOnly_ = input.readBool();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              validateOnly_ = input.readBool();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,36 +106,43 @@ private DeleteRevisionRequest(
     } 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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.RevisionProto
+        .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionProto
+        .internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.DeleteRevisionRequest.class, com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
+            com.google.cloud.run.v2.DeleteRevisionRequest.class,
+            com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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 @@ -125,31 +151,33 @@ 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 Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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 { @@ -160,12 +188,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -176,12 +207,15 @@ public boolean getValidateOnly() { public static final int ETAG_FIELD_NUMBER = 3; private volatile java.lang.Object etag_; /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -190,30 +224,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -222,6 +256,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +268,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_); } @@ -257,8 +291,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -271,19 +304,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.run.v2.DeleteRevisionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.DeleteRevisionRequest other = (com.google.cloud.run.v2.DeleteRevisionRequest) obj; + com.google.cloud.run.v2.DeleteRevisionRequest other = + (com.google.cloud.run.v2.DeleteRevisionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,8 +329,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -307,97 +337,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteRevisionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteRevisionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.DeleteRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest 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 message for deleting a retired Revision.
    * Revision lifecycle is usually managed by making changes to the parent
@@ -406,21 +443,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.DeleteRevisionRequest}
    */
-  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.run.v2.DeleteRevisionRequest)
       com.google.cloud.run.v2.DeleteRevisionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.DeleteRevisionRequest.class, com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
+              com.google.cloud.run.v2.DeleteRevisionRequest.class,
+              com.google.cloud.run.v2.DeleteRevisionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.DeleteRevisionRequest.newBuilder()
@@ -428,16 +467,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();
@@ -451,9 +489,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -472,7 +510,8 @@ public com.google.cloud.run.v2.DeleteRevisionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.DeleteRevisionRequest buildPartial() {
-      com.google.cloud.run.v2.DeleteRevisionRequest result = new com.google.cloud.run.v2.DeleteRevisionRequest(this);
+      com.google.cloud.run.v2.DeleteRevisionRequest result =
+          new com.google.cloud.run.v2.DeleteRevisionRequest(this);
       result.name_ = name_;
       result.validateOnly_ = validateOnly_;
       result.etag_ = etag_;
@@ -484,38 +523,39 @@ public com.google.cloud.run.v2.DeleteRevisionRequest 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.run.v2.DeleteRevisionRequest) {
-        return mergeFrom((com.google.cloud.run.v2.DeleteRevisionRequest)other);
+        return mergeFrom((com.google.cloud.run.v2.DeleteRevisionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -566,20 +606,24 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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; @@ -588,22 +632,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 { @@ -611,73 +658,89 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 Revision to delete.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -685,32 +748,38 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -718,19 +787,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -739,21 +810,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -761,64 +833,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. This may be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -828,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteRevisionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteRevisionRequest) private static final com.google.cloud.run.v2.DeleteRevisionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteRevisionRequest(); } @@ -842,16 +921,16 @@ public static com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRevisionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRevisionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRevisionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,6 +945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java index acff02d..52965f1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java @@ -1,66 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision.proto package com.google.cloud.run.v2; -public interface DeleteRevisionRequestOrBuilder extends +public interface DeleteRevisionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteRevisionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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.String getName(); /** + * + * *
    * Required. The name of the Revision to delete.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. This may be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java index c52e945..e129597 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message to delete a Service by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.DeleteServiceRequest} */ -public final class DeleteServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteServiceRequest) DeleteServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteServiceRequest.newBuilder() to construct. private DeleteServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteServiceRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private DeleteServiceRequest( 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: { - - validateOnly_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + validateOnly_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private DeleteServiceRequest( } 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteServiceRequest.class, com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); + com.google.cloud.run.v2.DeleteServiceRequest.class, + com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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 @@ -122,30 +148,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 full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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 { @@ -156,12 +184,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -172,12 +203,15 @@ public boolean getValidateOnly() { public static final int ETAG_FIELD_NUMBER = 3; private volatile java.lang.Object etag_; /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -186,30 +220,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -218,6 +252,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -267,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.run.v2.DeleteServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.DeleteServiceRequest other = (com.google.cloud.run.v2.DeleteServiceRequest) obj; + com.google.cloud.run.v2.DeleteServiceRequest other = + (com.google.cloud.run.v2.DeleteServiceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,8 +325,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -303,118 +333,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.DeleteServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest 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 message to delete a Service by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.DeleteServiceRequest} */ - 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.run.v2.DeleteServiceRequest) com.google.cloud.run.v2.DeleteServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteServiceRequest.class, com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); + com.google.cloud.run.v2.DeleteServiceRequest.class, + com.google.cloud.run.v2.DeleteServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.DeleteServiceRequest.newBuilder() @@ -422,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(); @@ -445,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; } @java.lang.Override @@ -466,7 +504,8 @@ public com.google.cloud.run.v2.DeleteServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.DeleteServiceRequest buildPartial() { - com.google.cloud.run.v2.DeleteServiceRequest result = new com.google.cloud.run.v2.DeleteServiceRequest(this); + com.google.cloud.run.v2.DeleteServiceRequest result = + new com.google.cloud.run.v2.DeleteServiceRequest(this); result.name_ = name_; result.validateOnly_ = validateOnly_; result.etag_ = etag_; @@ -478,38 +517,39 @@ public com.google.cloud.run.v2.DeleteServiceRequest 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.run.v2.DeleteServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.DeleteServiceRequest)other); + return mergeFrom((com.google.cloud.run.v2.DeleteServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -560,19 +600,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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; @@ -581,21 +625,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 { @@ -603,70 +650,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -674,32 +737,38 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting any resources.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -707,19 +776,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -728,21 +799,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -750,64 +822,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -817,12 +896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteServiceRequest) private static final com.google.cloud.run.v2.DeleteServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteServiceRequest(); } @@ -831,16 +910,16 @@ public static com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -855,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java index 3ebf529..9335704 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java @@ -1,64 +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/run/v2/service.proto package com.google.cloud.run.v2; -public interface DeleteServiceRequestOrBuilder extends +public interface DeleteServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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.String getName(); /** + * + * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java index ac9229b..37cce38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * EnvVar represents an environment variable present in a Container.
  * 
* * Protobuf type {@code google.cloud.run.v2.EnvVar} */ -public final class EnvVar extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnvVar extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.EnvVar) EnvVarOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnvVar.newBuilder() to construct. private EnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnvVar() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnvVar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EnvVar( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,39 +70,43 @@ private EnvVar( 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(); - valuesCase_ = 2; - values_ = s; - break; - } - case 26: { - com.google.cloud.run.v2.EnvVarSource.Builder subBuilder = null; - if (valuesCase_ == 3) { - subBuilder = ((com.google.cloud.run.v2.EnvVarSource) values_).toBuilder(); + name_ = s; + break; } - values_ = - input.readMessage(com.google.cloud.run.v2.EnvVarSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.EnvVarSource) values_); - values_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + valuesCase_ = 2; + values_ = s; + break; } - valuesCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + com.google.cloud.run.v2.EnvVarSource.Builder subBuilder = null; + if (valuesCase_ == 3) { + subBuilder = ((com.google.cloud.run.v2.EnvVarSource) values_).toBuilder(); + } + values_ = + input.readMessage( + com.google.cloud.run.v2.EnvVarSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.EnvVarSource) values_); + values_ = subBuilder.buildPartial(); + } + valuesCase_ = 3; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +114,39 @@ private EnvVar( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.EnvVar.class, com.google.cloud.run.v2.EnvVar.Builder.class); } private int valuesCase_ = 0; private java.lang.Object values_; + public enum ValuesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(2), VALUE_SOURCE(3), VALUES_NOT_SET(0); private final int value; + private ValuesCase(int value) { this.value = value; } @@ -137,32 +162,38 @@ public static ValuesCase valueOf(int value) { public static ValuesCase forNumber(int value) { switch (value) { - case 2: return VALUE; - case 3: return VALUE_SOURCE; - case 0: return VALUES_NOT_SET; - default: return null; + case 2: + return VALUE; + case 3: + return VALUE_SOURCE; + case 0: + return VALUES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValuesCase - getValuesCase() { - return ValuesCase.forNumber( - valuesCase_); + public ValuesCase getValuesCase() { + return ValuesCase.forNumber(valuesCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -171,30 +202,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. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -204,6 +235,8 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -216,12 +249,15 @@ public java.lang.String getName() {
    * 
* * string value = 2; + * * @return Whether the value field is set. */ public boolean hasValue() { return valuesCase_ == 2; } /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -234,6 +270,7 @@ public boolean hasValue() {
    * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { @@ -244,8 +281,7 @@ 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(); if (valuesCase_ == 2) { values_ = s; @@ -254,6 +290,8 @@ public java.lang.String getValue() { } } /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -266,18 +304,17 @@ public java.lang.String getValue() {
    * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = ""; if (valuesCase_ == 2) { ref = values_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (valuesCase_ == 2) { values_ = b; } @@ -289,11 +326,14 @@ public java.lang.String getValue() { public static final int VALUE_SOURCE_FIELD_NUMBER = 3; /** + * + * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return Whether the valueSource field is set. */ @java.lang.Override @@ -301,21 +341,26 @@ public boolean hasValueSource() { return valuesCase_ == 3; } /** + * + * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return The valueSource. */ @java.lang.Override public com.google.cloud.run.v2.EnvVarSource getValueSource() { if (valuesCase_ == 3) { - return (com.google.cloud.run.v2.EnvVarSource) values_; + return (com.google.cloud.run.v2.EnvVarSource) values_; } return com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } /** + * + * *
    * Source for the environment variable's value.
    * 
@@ -325,12 +370,13 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { @java.lang.Override public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { if (valuesCase_ == 3) { - return (com.google.cloud.run.v2.EnvVarSource) values_; + return (com.google.cloud.run.v2.EnvVarSource) values_; } return com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +388,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_); } @@ -369,8 +414,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, values_); } if (valuesCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.run.v2.EnvVarSource) values_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.run.v2.EnvVarSource) values_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,24 +426,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.run.v2.EnvVar)) { return super.equals(obj); } com.google.cloud.run.v2.EnvVar other = (com.google.cloud.run.v2.EnvVar) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getValuesCase().equals(other.getValuesCase())) return false; switch (valuesCase_) { case 2: - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; break; case 3: - if (!getValueSource() - .equals(other.getValueSource())) return false; + if (!getValueSource().equals(other.getValueSource())) return false; break; case 0: default: @@ -432,116 +475,123 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.EnvVar parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.EnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.EnvVar parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar 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.run.v2.EnvVar parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.run.v2.EnvVar parseFrom(com.google.protobuf.CodedInputStream 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.run.v2.EnvVar 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.run.v2.EnvVar 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; } /** + * + * *
    * EnvVar represents an environment variable present in a Container.
    * 
* * Protobuf type {@code google.cloud.run.v2.EnvVar} */ - 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.run.v2.EnvVar) com.google.cloud.run.v2.EnvVarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.EnvVar.class, com.google.cloud.run.v2.EnvVar.Builder.class); } @@ -551,16 +601,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(); @@ -572,9 +621,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVar_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVar_descriptor; } @java.lang.Override @@ -614,38 +663,39 @@ public com.google.cloud.run.v2.EnvVar 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.run.v2.EnvVar) { - return mergeFrom((com.google.cloud.run.v2.EnvVar)other); + return mergeFrom((com.google.cloud.run.v2.EnvVar) other); } else { super.mergeFrom(other); return this; @@ -659,19 +709,22 @@ public Builder mergeFrom(com.google.cloud.run.v2.EnvVar other) { onChanged(); } switch (other.getValuesCase()) { - case VALUE: { - valuesCase_ = 2; - values_ = other.values_; - onChanged(); - break; - } - case VALUE_SOURCE: { - mergeValueSource(other.getValueSource()); - break; - } - case VALUES_NOT_SET: { - break; - } + case VALUE: + { + valuesCase_ = 2; + values_ = other.values_; + onChanged(); + break; + } + case VALUE_SOURCE: + { + mergeValueSource(other.getValueSource()); + break; + } + case VALUES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -701,12 +754,12 @@ public Builder mergeFrom( } return this; } + private int valuesCase_ = 0; private java.lang.Object values_; - public ValuesCase - getValuesCase() { - return ValuesCase.forNumber( - valuesCase_); + + public ValuesCase getValuesCase() { + return ValuesCase.forNumber(valuesCase_); } public Builder clearValues() { @@ -716,22 +769,23 @@ public Builder clearValues() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -740,21 +794,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -762,63 +817,72 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
      * exceed 32768 characters.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -831,6 +895,7 @@ public Builder setNameBytes(
      * 
* * string value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -838,6 +903,8 @@ public boolean hasValue() { return valuesCase_ == 2; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -850,6 +917,7 @@ public boolean hasValue() {
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -859,8 +927,7 @@ public java.lang.String getValue() { ref = values_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (valuesCase_ == 2) { values_ = s; @@ -871,6 +938,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -883,19 +952,18 @@ public java.lang.String getValue() {
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = ""; if (valuesCase_ == 2) { ref = values_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (valuesCase_ == 2) { values_ = b; } @@ -905,6 +973,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -917,20 +987,22 @@ public java.lang.String getValue() {
      * 
* * string value = 2; + * * @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(); - } - valuesCase_ = 2; + throw new NullPointerException(); + } + valuesCase_ = 2; values_ = value; onChanged(); return this; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -943,6 +1015,7 @@ public Builder setValue(
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -954,6 +1027,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -966,15 +1041,15 @@ public Builder clearValue() {
      * 
* * string value = 2; + * * @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); valuesCase_ = 2; values_ = value; onChanged(); @@ -982,13 +1057,19 @@ public Builder setValueBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder> valueSourceBuilder_; + com.google.cloud.run.v2.EnvVarSource, + com.google.cloud.run.v2.EnvVarSource.Builder, + com.google.cloud.run.v2.EnvVarSourceOrBuilder> + valueSourceBuilder_; /** + * + * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return Whether the valueSource field is set. */ @java.lang.Override @@ -996,11 +1077,14 @@ public boolean hasValueSource() { return valuesCase_ == 3; } /** + * + * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return The valueSource. */ @java.lang.Override @@ -1018,6 +1102,8 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1038,14 +1124,15 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; */ - public Builder setValueSource( - com.google.cloud.run.v2.EnvVarSource.Builder builderForValue) { + public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder builderForValue) { if (valueSourceBuilder_ == null) { values_ = builderForValue.build(); onChanged(); @@ -1056,6 +1143,8 @@ public Builder setValueSource( return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1064,10 +1153,13 @@ public Builder setValueSource( */ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { if (valueSourceBuilder_ == null) { - if (valuesCase_ == 3 && - values_ != com.google.cloud.run.v2.EnvVarSource.getDefaultInstance()) { - values_ = com.google.cloud.run.v2.EnvVarSource.newBuilder((com.google.cloud.run.v2.EnvVarSource) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 3 + && values_ != com.google.cloud.run.v2.EnvVarSource.getDefaultInstance()) { + values_ = + com.google.cloud.run.v2.EnvVarSource.newBuilder( + (com.google.cloud.run.v2.EnvVarSource) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1083,6 +1175,8 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1106,6 +1200,8 @@ public Builder clearValueSource() { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1116,6 +1212,8 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1134,6 +1232,8 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1141,26 +1241,30 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { * .google.cloud.run.v2.EnvVarSource value_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder> + com.google.cloud.run.v2.EnvVarSource, + com.google.cloud.run.v2.EnvVarSource.Builder, + com.google.cloud.run.v2.EnvVarSourceOrBuilder> getValueSourceFieldBuilder() { if (valueSourceBuilder_ == null) { if (!(valuesCase_ == 3)) { values_ = com.google.cloud.run.v2.EnvVarSource.getDefaultInstance(); } - valueSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.EnvVarSource, com.google.cloud.run.v2.EnvVarSource.Builder, com.google.cloud.run.v2.EnvVarSourceOrBuilder>( - (com.google.cloud.run.v2.EnvVarSource) values_, - getParentForChildren(), - isClean()); + valueSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.EnvVarSource, + com.google.cloud.run.v2.EnvVarSource.Builder, + com.google.cloud.run.v2.EnvVarSourceOrBuilder>( + (com.google.cloud.run.v2.EnvVarSource) values_, getParentForChildren(), isClean()); values_ = null; } valuesCase_ = 3; - onChanged();; + onChanged(); + ; return valueSourceBuilder_; } + @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); } @@ -1170,12 +1274,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.EnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.EnvVar) private static final com.google.cloud.run.v2.EnvVar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.EnvVar(); } @@ -1184,16 +1288,16 @@ public static com.google.cloud.run.v2.EnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,6 +1312,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java index f0bc095..b0c1be0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface EnvVarOrBuilder extends +public interface EnvVarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.EnvVar) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
    * exceed 32768 characters.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -42,10 +65,13 @@ public interface EnvVarOrBuilder extends
    * 
* * string value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -58,10 +84,13 @@ public interface EnvVarOrBuilder extends
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -74,30 +103,38 @@ public interface EnvVarOrBuilder extends
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return Whether the valueSource field is set. */ boolean hasValueSource(); /** + * + * *
    * Source for the environment variable's value.
    * 
* * .google.cloud.run.v2.EnvVarSource value_source = 3; + * * @return The valueSource. */ com.google.cloud.run.v2.EnvVarSource getValueSource(); /** + * + * *
    * Source for the environment variable's value.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java index d042926..287e024 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * EnvVarSource represents a source for the value of an EnvVar.
  * 
* * Protobuf type {@code google.cloud.run.v2.EnvVarSource} */ -public final class EnvVarSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnvVarSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.EnvVarSource) EnvVarSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnvVarSource.newBuilder() to construct. private EnvVarSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnvVarSource() { - } + + private EnvVarSource() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnvVarSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EnvVarSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private EnvVarSource( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.SecretKeySelector.Builder subBuilder = null; - if (secretKeyRef_ != null) { - subBuilder = secretKeyRef_.toBuilder(); + case 10: + { + com.google.cloud.run.v2.SecretKeySelector.Builder subBuilder = null; + if (secretKeyRef_ != null) { + subBuilder = secretKeyRef_.toBuilder(); + } + secretKeyRef_ = + input.readMessage( + com.google.cloud.run.v2.SecretKeySelector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secretKeyRef_); + secretKeyRef_ = subBuilder.buildPartial(); + } + + break; } - secretKeyRef_ = input.readMessage(com.google.cloud.run.v2.SecretKeySelector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secretKeyRef_); - secretKeyRef_ = subBuilder.buildPartial(); - } - - 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) { @@ -79,34 +98,39 @@ private EnvVarSource( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.EnvVarSource.class, com.google.cloud.run.v2.EnvVarSource.Builder.class); + com.google.cloud.run.v2.EnvVarSource.class, + com.google.cloud.run.v2.EnvVarSource.Builder.class); } public static final int SECRET_KEY_REF_FIELD_NUMBER = 1; private com.google.cloud.run.v2.SecretKeySelector secretKeyRef_; /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return Whether the secretKeyRef field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasSecretKeyRef() { return secretKeyRef_ != null; } /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return The secretKeyRef. */ @java.lang.Override public com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef() { - return secretKeyRef_ == null ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; + return secretKeyRef_ == null + ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() + : secretKeyRef_; } /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,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 (secretKeyRef_ != null) { output.writeMessage(1, getSecretKeyRef()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (secretKeyRef_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSecretKeyRef()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecretKeyRef()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,7 +205,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.run.v2.EnvVarSource)) { return super.equals(obj); @@ -184,8 +214,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSecretKeyRef() != other.hasSecretKeyRef()) return false; if (hasSecretKeyRef()) { - if (!getSecretKeyRef() - .equals(other.getSecretKeyRef())) return false; + if (!getSecretKeyRef().equals(other.getSecretKeyRef())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +236,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.EnvVarSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.EnvVarSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.EnvVarSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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.run.v2.EnvVarSource 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; } /** + * + * *
    * EnvVarSource represents a source for the value of an EnvVar.
    * 
* * Protobuf type {@code google.cloud.run.v2.EnvVarSource} */ - 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.run.v2.EnvVarSource) com.google.cloud.run.v2.EnvVarSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.EnvVarSource.class, com.google.cloud.run.v2.EnvVarSource.Builder.class); + com.google.cloud.run.v2.EnvVarSource.class, + com.google.cloud.run.v2.EnvVarSource.Builder.class); } // Construct using com.google.cloud.run.v2.EnvVarSource.newBuilder() @@ -326,16 +363,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(); @@ -349,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_EnvVarSource_descriptor; } @java.lang.Override @@ -384,38 +420,39 @@ public com.google.cloud.run.v2.EnvVarSource 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.run.v2.EnvVarSource) { - return mergeFrom((com.google.cloud.run.v2.EnvVarSource)other); + return mergeFrom((com.google.cloud.run.v2.EnvVarSource) other); } else { super.mergeFrom(other); return this; @@ -458,34 +495,47 @@ public Builder mergeFrom( private com.google.cloud.run.v2.SecretKeySelector secretKeyRef_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder> secretKeyRefBuilder_; + com.google.cloud.run.v2.SecretKeySelector, + com.google.cloud.run.v2.SecretKeySelector.Builder, + com.google.cloud.run.v2.SecretKeySelectorOrBuilder> + secretKeyRefBuilder_; /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return Whether the secretKeyRef field is set. */ public boolean hasSecretKeyRef() { return secretKeyRefBuilder_ != null || secretKeyRef_ != null; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return The secretKeyRef. */ public com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef() { if (secretKeyRefBuilder_ == null) { - return secretKeyRef_ == null ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; + return secretKeyRef_ == null + ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() + : secretKeyRef_; } else { return secretKeyRefBuilder_.getMessage(); } } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -506,6 +556,8 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -524,6 +576,8 @@ public Builder setSecretKeyRef( return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -534,7 +588,9 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value if (secretKeyRefBuilder_ == null) { if (secretKeyRef_ != null) { secretKeyRef_ = - com.google.cloud.run.v2.SecretKeySelector.newBuilder(secretKeyRef_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.SecretKeySelector.newBuilder(secretKeyRef_) + .mergeFrom(value) + .buildPartial(); } else { secretKeyRef_ = value; } @@ -546,6 +602,8 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -564,6 +622,8 @@ public Builder clearSecretKeyRef() { return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -571,11 +631,13 @@ public Builder clearSecretKeyRef() { * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; */ public com.google.cloud.run.v2.SecretKeySelector.Builder getSecretKeyRefBuilder() { - + onChanged(); return getSecretKeyRefFieldBuilder().getBuilder(); } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -586,11 +648,14 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild if (secretKeyRefBuilder_ != null) { return secretKeyRefBuilder_.getMessageOrBuilder(); } else { - return secretKeyRef_ == null ? - com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() : secretKeyRef_; + return secretKeyRef_ == null + ? com.google.cloud.run.v2.SecretKeySelector.getDefaultInstance() + : secretKeyRef_; } } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -598,21 +663,24 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder> + com.google.cloud.run.v2.SecretKeySelector, + com.google.cloud.run.v2.SecretKeySelector.Builder, + com.google.cloud.run.v2.SecretKeySelectorOrBuilder> getSecretKeyRefFieldBuilder() { if (secretKeyRefBuilder_ == null) { - secretKeyRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretKeySelector, com.google.cloud.run.v2.SecretKeySelector.Builder, com.google.cloud.run.v2.SecretKeySelectorOrBuilder>( - getSecretKeyRef(), - getParentForChildren(), - isClean()); + secretKeyRefBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SecretKeySelector, + com.google.cloud.run.v2.SecretKeySelector.Builder, + com.google.cloud.run.v2.SecretKeySelectorOrBuilder>( + getSecretKeyRef(), getParentForChildren(), isClean()); secretKeyRef_ = null; } return secretKeyRefBuilder_; } + @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,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.EnvVarSource) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.EnvVarSource) private static final com.google.cloud.run.v2.EnvVarSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.EnvVarSource(); } @@ -636,16 +704,16 @@ public static com.google.cloud.run.v2.EnvVarSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvVarSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvVarSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvVarSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvVarSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVarSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java index 7209c61..16d2f24 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface EnvVarSourceOrBuilder extends +public interface EnvVarSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.EnvVarSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return Whether the secretKeyRef field is set. */ boolean hasSecretKeyRef(); /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
* * .google.cloud.run.v2.SecretKeySelector secret_key_ref = 1; + * * @return The secretKeyRef. */ com.google.cloud.run.v2.SecretKeySelector getSecretKeyRef(); /** + * + * *
    * Selects a secret and a specific version from Cloud Secret Manager.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java index cbf1723..f2d5273 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** + * + * *
  * Alternatives for execution environments.
  * 
* * Protobuf enum {@code google.cloud.run.v2.ExecutionEnvironment} */ -public enum ExecutionEnvironment - implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified
    * 
@@ -21,6 +39,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_UNSPECIFIED(0), /** + * + * *
    * Uses the First Generation environment.
    * 
@@ -29,6 +49,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_GEN1(1), /** + * + * *
    * Uses Second Generation environment.
    * 
@@ -40,6 +62,8 @@ public enum ExecutionEnvironment ; /** + * + * *
    * Unspecified
    * 
@@ -48,6 +72,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Uses the First Generation environment.
    * 
@@ -56,6 +82,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_GEN1_VALUE = 1; /** + * + * *
    * Uses Second Generation environment.
    * 
@@ -64,7 +92,6 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_GEN2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,10 +116,14 @@ public static ExecutionEnvironment valueOf(int value) { */ public static ExecutionEnvironment forNumber(int value) { switch (value) { - case 0: return EXECUTION_ENVIRONMENT_UNSPECIFIED; - case 1: return EXECUTION_ENVIRONMENT_GEN1; - case 2: return EXECUTION_ENVIRONMENT_GEN2; - default: return null; + case 0: + return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: + return EXECUTION_ENVIRONMENT_GEN1; + case 2: + return EXECUTION_ENVIRONMENT_GEN2; + default: + return null; } } @@ -100,28 +131,28 @@ public static ExecutionEnvironment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionEnvironment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionEnvironment findValueByNumber(int number) { - return ExecutionEnvironment.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 ExecutionEnvironment findValueByNumber(int number) { + return ExecutionEnvironment.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.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(1); } @@ -130,8 +161,7 @@ public ExecutionEnvironment findValueByNumber(int number) { public static ExecutionEnvironment 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 +177,3 @@ private ExecutionEnvironment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ExecutionEnvironment) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java index 5e1933d..dd3aad3 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for obtaining a Revision by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetRevisionRequest} */ -public final class GetRevisionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRevisionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetRevisionRequest) GetRevisionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRevisionRequest.newBuilder() to construct. private GetRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRevisionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRevisionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetRevisionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetRevisionRequest( 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,36 +91,43 @@ private GetRevisionRequest( } 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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetRevisionRequest.class, com.google.cloud.run.v2.GetRevisionRequest.Builder.class); + com.google.cloud.run.v2.GetRevisionRequest.class, + com.google.cloud.run.v2.GetRevisionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Revision.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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 @@ -111,31 +136,33 @@ 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 full name of the Revision.
    * Format:
    * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
    * 
* - * 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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,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_); } @@ -180,15 +207,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.run.v2.GetRevisionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.GetRevisionRequest other = (com.google.cloud.run.v2.GetRevisionRequest) obj; + com.google.cloud.run.v2.GetRevisionRequest other = + (com.google.cloud.run.v2.GetRevisionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetRevisionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetRevisionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.GetRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest 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 message for obtaining a Revision by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetRevisionRequest} */ - 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.run.v2.GetRevisionRequest) com.google.cloud.run.v2.GetRevisionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetRevisionRequest.class, com.google.cloud.run.v2.GetRevisionRequest.Builder.class); + com.google.cloud.run.v2.GetRevisionRequest.class, + com.google.cloud.run.v2.GetRevisionRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetRevisionRequest.newBuilder() @@ -326,16 +362,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 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.run.v2.GetRevisionRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetRevisionRequest buildPartial() { - com.google.cloud.run.v2.GetRevisionRequest result = new com.google.cloud.run.v2.GetRevisionRequest(this); + com.google.cloud.run.v2.GetRevisionRequest result = + new com.google.cloud.run.v2.GetRevisionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.run.v2.GetRevisionRequest 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.run.v2.GetRevisionRequest) { - return mergeFrom((com.google.cloud.run.v2.GetRevisionRequest)other); + return mergeFrom((com.google.cloud.run.v2.GetRevisionRequest) other); } else { super.mergeFrom(other); return this; @@ -451,20 +488,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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; @@ -473,22 +514,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 { @@ -496,67 +540,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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 full name of the Revision.
      * Format:
      * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
      * 
* - * 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); } @@ -566,12 +623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetRevisionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetRevisionRequest) private static final com.google.cloud.run.v2.GetRevisionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetRevisionRequest(); } @@ -580,16 +637,16 @@ public static com.google.cloud.run.v2.GetRevisionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRevisionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRevisionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRevisionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java new file mode 100644 index 0000000..370fcb9 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java @@ -0,0 +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/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public interface GetRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the Revision.
+   * Format:
+   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The full name of the Revision.
+   * Format:
+   * projects/{project}/locations/{location}/services/{service}/revisions/{revision}
+   * 
+ * + * + * 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-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java index 8435db3..03a8bae 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for obtaining a Service by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetServiceRequest} */ -public final class GetServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetServiceRequest) GetServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetServiceRequest.newBuilder() to construct. private GetServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetServiceRequest( 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 GetServiceRequest( } 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetServiceRequest.class, com.google.cloud.run.v2.GetServiceRequest.Builder.class); + com.google.cloud.run.v2.GetServiceRequest.class, + com.google.cloud.run.v2.GetServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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 full name of the Service.
    * Format: projects/{projectnumber}/locations/{location}/services/{service}
    * 
* - * 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.run.v2.GetServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.GetServiceRequest other = (com.google.cloud.run.v2.GetServiceRequest) obj; + com.google.cloud.run.v2.GetServiceRequest other = + (com.google.cloud.run.v2.GetServiceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.GetServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest 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 message for obtaining a Service by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetServiceRequest} */ - 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.run.v2.GetServiceRequest) com.google.cloud.run.v2.GetServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetServiceRequest.class, com.google.cloud.run.v2.GetServiceRequest.Builder.class); + com.google.cloud.run.v2.GetServiceRequest.class, + com.google.cloud.run.v2.GetServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetServiceRequest.newBuilder() @@ -324,16 +360,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 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.run.v2.GetServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetServiceRequest buildPartial() { - com.google.cloud.run.v2.GetServiceRequest result = new com.google.cloud.run.v2.GetServiceRequest(this); + com.google.cloud.run.v2.GetServiceRequest result = + new com.google.cloud.run.v2.GetServiceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.run.v2.GetServiceRequest 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.run.v2.GetServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.GetServiceRequest)other); + return mergeFrom((com.google.cloud.run.v2.GetServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 +511,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 +536,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 full name of the Service.
      * Format: projects/{projectnumber}/locations/{location}/services/{service}
      * 
* - * 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 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetServiceRequest) private static final com.google.cloud.run.v2.GetServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetServiceRequest(); } @@ -573,16 +630,16 @@ public static com.google.cloud.run.v2.GetServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java new file mode 100644 index 0000000..4b26246 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.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/run/v2/service.proto + +package com.google.cloud.run.v2; + +public interface GetServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the Service.
+   * Format: projects/{projectnumber}/locations/{location}/services/{service}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The full name of the Service.
+   * Format: projects/{projectnumber}/locations/{location}/services/{service}
+   * 
+ * + * + * 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-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java index 5b0728c..36c0d0b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** + * + * *
  * Allowed ingress traffic for the Container.
  * 
* * Protobuf enum {@code google.cloud.run.v2.IngressTraffic} */ -public enum IngressTraffic - implements com.google.protobuf.ProtocolMessageEnum { +public enum IngressTraffic implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified
    * 
@@ -21,6 +39,8 @@ public enum IngressTraffic */ INGRESS_TRAFFIC_UNSPECIFIED(0), /** + * + * *
    * All inbound traffic is allowed.
    * 
@@ -29,6 +49,8 @@ public enum IngressTraffic */ INGRESS_TRAFFIC_ALL(1), /** + * + * *
    * Only internal traffic is allowed.
    * 
@@ -37,6 +59,8 @@ public enum IngressTraffic */ INGRESS_TRAFFIC_INTERNAL_ONLY(2), /** + * + * *
    * Both internal and Google Cloud Load Balancer traffic is allowed.
    * 
@@ -48,6 +72,8 @@ public enum IngressTraffic ; /** + * + * *
    * Unspecified
    * 
@@ -56,6 +82,8 @@ public enum IngressTraffic */ public static final int INGRESS_TRAFFIC_UNSPECIFIED_VALUE = 0; /** + * + * *
    * All inbound traffic is allowed.
    * 
@@ -64,6 +92,8 @@ public enum IngressTraffic */ public static final int INGRESS_TRAFFIC_ALL_VALUE = 1; /** + * + * *
    * Only internal traffic is allowed.
    * 
@@ -72,6 +102,8 @@ public enum IngressTraffic */ public static final int INGRESS_TRAFFIC_INTERNAL_ONLY_VALUE = 2; /** + * + * *
    * Both internal and Google Cloud Load Balancer traffic is allowed.
    * 
@@ -80,7 +112,6 @@ public enum IngressTraffic */ public static final int INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,51 @@ public static IngressTraffic valueOf(int value) { */ public static IngressTraffic forNumber(int value) { switch (value) { - case 0: return INGRESS_TRAFFIC_UNSPECIFIED; - case 1: return INGRESS_TRAFFIC_ALL; - case 2: return INGRESS_TRAFFIC_INTERNAL_ONLY; - case 3: return INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER; - default: return null; + case 0: + return INGRESS_TRAFFIC_UNSPECIFIED; + case 1: + return INGRESS_TRAFFIC_ALL; + case 2: + return INGRESS_TRAFFIC_INTERNAL_ONLY; + case 3: + return INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER; + 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< - IngressTraffic> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressTraffic findValueByNumber(int number) { - return IngressTraffic.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 IngressTraffic findValueByNumber(int number) { + return IngressTraffic.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.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(0); } private static final IngressTraffic[] VALUES = values(); - public static IngressTraffic valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static IngressTraffic 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 +196,3 @@ private IngressTraffic(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.IngressTraffic) } - diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java new file mode 100644 index 0000000..3e563eb --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -0,0 +1,252 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/k8s.min.proto + +package com.google.cloud.run.v2; + +public final class K8sMinProto { + private K8sMinProto() {} + + 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_run_v2_Container_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_EnvVar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_EnvVarSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ContainerPort_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VolumeMount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Volume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VersionToPath_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CloudSqlInstance_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/run/v2/k8s.min.proto\022\023goo" + + "gle.cloud.run.v2\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\"\240\002\n" + + "\tContainer\022\014\n\004name\030\001 \001(\t\022\022\n\005image\030\002 \001(\tB" + + "\003\340A\002\022\017\n\007command\030\003 \003(\t\022\014\n\004args\030\004 \003(\t\022(\n\003e" + + "nv\030\005 \003(\0132\033.google.cloud.run.v2.EnvVar\022<\n" + + "\tresources\030\006 \001(\0132).google.cloud.run.v2.R" + + "esourceRequirements\0221\n\005ports\030\007 \003(\0132\".goo" + + "gle.cloud.run.v2.ContainerPort\0227\n\rvolume" + + "_mounts\030\010 \003(\0132 .google.cloud.run.v2.Volu" + + "meMount\"\236\001\n\024ResourceRequirements\022E\n\006limi" + + "ts\030\001 \003(\01325.google.cloud.run.v2.ResourceR" + + "equirements.LimitsEntry\022\020\n\010cpu_idle\030\002 \001(" + + "\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017\n" + + "\005value\030\002 \001(\tH\000\0229\n\014value_source\030\003 \001(\0132!.g" + + "oogle.cloud.run.v2.EnvVarSourceH\000B\010\n\006val" + + "ues\"N\n\014EnvVarSource\022>\n\016secret_key_ref\030\001 " + + "\001(\0132&.google.cloud.run.v2.SecretKeySelec" + + "tor\"\222\001\n\021SecretKeySelector\022;\n\006secret\030\001 \001(" + + "\tB+\340A\002\372A%\n#secretmanager.googleapis.com/" + + "Secret\022@\n\007version\030\002 \001(\tB/\372A,\n*secretmana" + + "ger.googleapis.com/SecretVersion\"5\n\rCont" + + "ainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container_por" + + "t\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volume\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.googl" + + "e.cloud.run.v2.SecretVolumeSourceH\000\022C\n\022c" + + "loud_sql_instance\030\003 \001(\0132%.google.cloud.r" + + "un.v2.CloudSqlInstanceH\000B\r\n\013volume_type\"" + + "r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(\tB\003\340" + + "A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run.v2." + + "VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"A\n\rV" + + "ersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007versi" + + "on\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlInstan" + + "ce\022\021\n\tinstances\030\001 \003(\tB\366\003\n\027com.google.clo" + + "ud.run.v2B\013K8sMinProtoP\001Z6google.golang." + + "org/genproto/googleapis/cloud/run/v2;run" + + "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" + + "projects/{project}/locations/{location}/" + + "keyRings/{key_ring}/cryptoKeys/{crypto_k" + + "ey}\352AJ\n#secretmanager.googleapis.com/Sec" + + "ret\022#projects/{project}/secrets/{secret}" + + "\352Ad\n*secretmanager.googleapis.com/Secret" + + "Version\0226projects/{project}/secrets/{sec" + + "ret}/versions/{version}\352Ad\n\"vpcaccess.go" + + "ogleapis.com/Connector\022>projects/{projec" + + "t}/locations/{location}/connectors/{conn" + + "ector}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_Container_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_Container_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Container_descriptor, + new java.lang.String[] { + "Name", "Image", "Command", "Args", "Env", "Resources", "Ports", "VolumeMounts", + }); + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, + new java.lang.String[] { + "Limits", "CpuIdle", + }); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_EnvVar_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVar_descriptor, + new java.lang.String[] { + "Name", "Value", "ValueSource", "Values", + }); + internal_static_google_cloud_run_v2_EnvVarSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVarSource_descriptor, + new java.lang.String[] { + "SecretKeyRef", + }); + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, + new java.lang.String[] { + "Secret", "Version", + }); + internal_static_google_cloud_run_v2_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ContainerPort_descriptor, + new java.lang.String[] { + "Name", "ContainerPort", + }); + internal_static_google_cloud_run_v2_VolumeMount_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VolumeMount_descriptor, + new java.lang.String[] { + "Name", "MountPath", + }); + internal_static_google_cloud_run_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Volume_descriptor, + new java.lang.String[] { + "Name", "Secret", "CloudSqlInstance", "VolumeType", + }); + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, + new java.lang.String[] { + "Secret", "Items", "DefaultMode", + }); + internal_static_google_cloud_run_v2_VersionToPath_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VersionToPath_descriptor, + new java.lang.String[] { + "Path", "Version", "Mode", + }); + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, + new java.lang.String[] { + "Instances", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java index 8877944..9b81705 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.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/run/v2/revision.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for retrieving a list of Revisions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsRequest} */ -public final class ListRevisionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListRevisionsRequest) ListRevisionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRevisionsRequest.newBuilder() to construct. private ListRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRevisionsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListRevisionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRevisionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRevisionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,37 @@ private ListRevisionsRequest( 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(); - - pageToken_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - showDeleted_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + showDeleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,29 +109,33 @@ private ListRevisionsRequest( } 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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsRequest.class, com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); + com.google.cloud.run.v2.ListRevisionsRequest.class, + com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -120,7 +143,10 @@ private ListRevisionsRequest(
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * 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 @@ -129,14 +155,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 Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -144,17 +171,18 @@ public java.lang.String getParent() {
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * 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 { @@ -165,11 +193,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of revisions to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -180,12 +211,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -194,30 +228,30 @@ 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; } } /** + * + * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * 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 { @@ -228,11 +262,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_; /** + * + * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -241,6 +278,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +290,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_); } @@ -279,15 +316,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,21 +332,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.run.v2.ListRevisionsRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.ListRevisionsRequest other = (com.google.cloud.run.v2.ListRevisionsRequest) obj; + com.google.cloud.run.v2.ListRevisionsRequest other = + (com.google.cloud.run.v2.ListRevisionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,125 +362,133 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListRevisionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListRevisionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest 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 message for retrieving a list of Revisions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsRequest} */ - 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.run.v2.ListRevisionsRequest) com.google.cloud.run.v2.ListRevisionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsRequest.class, com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); + com.google.cloud.run.v2.ListRevisionsRequest.class, + com.google.cloud.run.v2.ListRevisionsRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListRevisionsRequest.newBuilder() @@ -456,16 +496,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(); @@ -481,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; } @java.lang.Override @@ -502,7 +541,8 @@ public com.google.cloud.run.v2.ListRevisionsRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListRevisionsRequest buildPartial() { - com.google.cloud.run.v2.ListRevisionsRequest result = new com.google.cloud.run.v2.ListRevisionsRequest(this); + com.google.cloud.run.v2.ListRevisionsRequest result = + new com.google.cloud.run.v2.ListRevisionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -515,38 +555,39 @@ public com.google.cloud.run.v2.ListRevisionsRequest 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.run.v2.ListRevisionsRequest) { - return mergeFrom((com.google.cloud.run.v2.ListRevisionsRequest)other); + return mergeFrom((com.google.cloud.run.v2.ListRevisionsRequest) other); } else { super.mergeFrom(other); return this; @@ -600,6 +641,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -607,14 +650,16 @@ public Builder mergeFrom(
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * 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; @@ -623,6 +668,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -630,16 +677,17 @@ public java.lang.String getParent() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * 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 { @@ -647,6 +695,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -654,21 +704,25 @@ public java.lang.String getParent() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * 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 Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -676,16 +730,21 @@ public Builder setParent(
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * 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 Service from which the Revisions should be listed.
      * To list all Revisions across Services, use "-" instead of Service name.
@@ -693,29 +752,34 @@ public Builder clearParent() {
      * projects/{project}/locations/{location}/services/{service}
      * 
* - * 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 revisions to return in this call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -723,30 +787,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of revisions to return in this 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 revisions to return in this call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -754,19 +824,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; @@ -775,21 +847,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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 { @@ -797,69 +870,79 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; } /** + * + * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token received from a previous call to ListRevisions.
      * All other parameters must match.
      * 
* * 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; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -867,37 +950,43 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; onChanged(); return this; } /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { - + showDeleted_ = 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); } @@ -907,12 +996,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListRevisionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListRevisionsRequest) private static final com.google.cloud.run.v2.ListRevisionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListRevisionsRequest(); } @@ -921,16 +1010,16 @@ public static com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRevisionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRevisionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRevisionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java index f2754c9..43da0fd 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.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/run/v2/revision.proto package com.google.cloud.run.v2; -public interface ListRevisionsRequestOrBuilder extends +public interface ListRevisionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListRevisionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -15,11 +33,16 @@ public interface ListRevisionsRequestOrBuilder extends
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * 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 Service from which the Revisions should be listed.
    * To list all Revisions across Services, use "-" instead of Service name.
@@ -27,50 +50,63 @@ public interface ListRevisionsRequestOrBuilder extends
    * projects/{project}/locations/{location}/services/{service}
    * 
* - * 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 revisions to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token received from a previous call to ListRevisions.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java index 2bcbc5a..823d01d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.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/run/v2/revision.proto package com.google.cloud.run.v2; /** + * + * *
  * Response message containing a list of Revisions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsResponse} */ -public final class ListRevisionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListRevisionsResponse) ListRevisionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRevisionsResponse.newBuilder() to construct. private ListRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRevisionsResponse() { revisions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListRevisionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRevisionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRevisionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListRevisionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - revisions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + revisions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + revisions_.add( + input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry)); + break; } - revisions_.add( - input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListRevisionsResponse( } 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)) { revisions_ = java.util.Collections.unmodifiableList(revisions_); @@ -94,22 +112,27 @@ private ListRevisionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsResponse.class, com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); + com.google.cloud.run.v2.ListRevisionsResponse.class, + com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); } public static final int REVISIONS_FIELD_NUMBER = 1; private java.util.List revisions_; /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -121,6 +144,8 @@ public java.util.List getRevisionsList() { return revisions_; } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -128,11 +153,13 @@ public java.util.List getRevisionsList() { * repeated .google.cloud.run.v2.Revision revisions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRevisionsOrBuilderList() { return revisions_; } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -144,6 +171,8 @@ public int getRevisionsCount() { return revisions_.size(); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -155,6 +184,8 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -162,20 +193,22 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { * repeated .google.cloud.run.v2.Revision revisions = 1; */ @java.lang.Override - public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( - int index) { + public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index) { return revisions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +217,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 indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * 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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,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 < revisions_.size(); i++) { output.writeMessage(1, revisions_.get(i)); } @@ -245,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < revisions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, revisions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, revisions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +291,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.run.v2.ListRevisionsResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListRevisionsResponse other = (com.google.cloud.run.v2.ListRevisionsResponse) obj; + com.google.cloud.run.v2.ListRevisionsResponse other = + (com.google.cloud.run.v2.ListRevisionsResponse) obj; - if (!getRevisionsList() - .equals(other.getRevisionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRevisionsList().equals(other.getRevisionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListRevisionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListRevisionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse 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 message containing a list of Revisions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListRevisionsResponse} */ - 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.run.v2.ListRevisionsResponse) com.google.cloud.run.v2.ListRevisionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListRevisionsResponse.class, com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); + com.google.cloud.run.v2.ListRevisionsResponse.class, + com.google.cloud.run.v2.ListRevisionsResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListRevisionsResponse.newBuilder() @@ -411,17 +451,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) { getRevisionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; } @java.lang.Override @@ -458,7 +498,8 @@ public com.google.cloud.run.v2.ListRevisionsResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListRevisionsResponse buildPartial() { - com.google.cloud.run.v2.ListRevisionsResponse result = new com.google.cloud.run.v2.ListRevisionsResponse(this); + com.google.cloud.run.v2.ListRevisionsResponse result = + new com.google.cloud.run.v2.ListRevisionsResponse(this); int from_bitField0_ = bitField0_; if (revisionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.cloud.run.v2.ListRevisionsResponse 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.run.v2.ListRevisionsResponse) { - return mergeFrom((com.google.cloud.run.v2.ListRevisionsResponse)other); + return mergeFrom((com.google.cloud.run.v2.ListRevisionsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListRevisionsResponse other) { revisionsBuilder_ = null; revisions_ = other.revisions_; bitField0_ = (bitField0_ & ~0x00000001); - revisionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRevisionsFieldBuilder() : null; + revisionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRevisionsFieldBuilder() + : null; } else { revisionsBuilder_.addAllMessages(other.revisions_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List revisions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRevisionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { revisions_ = new java.util.ArrayList(revisions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder> revisionsBuilder_; + com.google.cloud.run.v2.Revision, + com.google.cloud.run.v2.Revision.Builder, + com.google.cloud.run.v2.RevisionOrBuilder> + revisionsBuilder_; /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -605,6 +655,8 @@ public java.util.List getRevisionsList() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -619,6 +671,8 @@ public int getRevisionsCount() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -633,14 +687,15 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { } } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder setRevisions( - int index, com.google.cloud.run.v2.Revision value) { + public Builder setRevisions(int index, com.google.cloud.run.v2.Revision value) { if (revisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +709,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -672,6 +729,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -692,14 +751,15 @@ public Builder addRevisions(com.google.cloud.run.v2.Revision value) { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder addRevisions( - int index, com.google.cloud.run.v2.Revision value) { + public Builder addRevisions(int index, com.google.cloud.run.v2.Revision value) { if (revisionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +773,15 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public Builder addRevisions( - com.google.cloud.run.v2.Revision.Builder builderForValue) { + public Builder addRevisions(com.google.cloud.run.v2.Revision.Builder builderForValue) { if (revisionsBuilder_ == null) { ensureRevisionsIsMutable(); revisions_.add(builderForValue.build()); @@ -731,6 +792,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -749,6 +812,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -759,8 +824,7 @@ public Builder addAllRevisions( java.lang.Iterable values) { if (revisionsBuilder_ == null) { ensureRevisionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, revisions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_); onChanged(); } else { revisionsBuilder_.addAllMessages(values); @@ -768,6 +832,8 @@ public Builder addAllRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -785,6 +851,8 @@ public Builder clearRevisions() { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -802,39 +870,44 @@ public Builder removeRevisions(int index) { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.Revision.Builder getRevisionsBuilder( - int index) { + public com.google.cloud.run.v2.Revision.Builder getRevisionsBuilder(int index) { return getRevisionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( - int index) { + public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index) { if (revisionsBuilder_ == null) { - return revisions_.get(index); } else { + return revisions_.get(index); + } else { return revisionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public java.util.List - getRevisionsOrBuilderList() { + public java.util.List + getRevisionsOrBuilderList() { if (revisionsBuilder_ != null) { return revisionsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +915,8 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -849,42 +924,47 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( * repeated .google.cloud.run.v2.Revision revisions = 1; */ public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder() { - return getRevisionsFieldBuilder().addBuilder( - com.google.cloud.run.v2.Revision.getDefaultInstance()); + return getRevisionsFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Revision.getDefaultInstance()); } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder( - int index) { - return getRevisionsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Revision.getDefaultInstance()); + public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder(int index) { + return getRevisionsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Revision.getDefaultInstance()); } /** + * + * *
      * The resulting list of Revisions.
      * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - public java.util.List - getRevisionsBuilderList() { + public java.util.List getRevisionsBuilderList() { return getRevisionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder> + com.google.cloud.run.v2.Revision, + com.google.cloud.run.v2.Revision.Builder, + com.google.cloud.run.v2.RevisionOrBuilder> getRevisionsFieldBuilder() { if (revisionsBuilder_ == null) { - revisionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Revision, com.google.cloud.run.v2.Revision.Builder, com.google.cloud.run.v2.RevisionOrBuilder>( - revisions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + revisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Revision, + com.google.cloud.run.v2.Revision.Builder, + com.google.cloud.run.v2.RevisionOrBuilder>( + revisions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); revisions_ = null; } return revisionsBuilder_; @@ -892,19 +972,21 @@ public com.google.cloud.run.v2.Revision.Builder addRevisionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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; @@ -913,21 +995,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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 { @@ -935,64 +1018,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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 indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListRevisions request to continue.
      * 
* * 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; } + @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); } @@ -1002,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListRevisionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListRevisionsResponse) private static final com.google.cloud.run.v2.ListRevisionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListRevisionsResponse(); } @@ -1016,16 +1106,16 @@ public static com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRevisionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRevisionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRevisionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java index 6755d07..989c91f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.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/run/v2/revision.proto package com.google.cloud.run.v2; -public interface ListRevisionsResponseOrBuilder extends +public interface ListRevisionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListRevisionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - java.util.List - getRevisionsList(); + java.util.List getRevisionsList(); /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -25,6 +44,8 @@ public interface ListRevisionsResponseOrBuilder extends */ com.google.cloud.run.v2.Revision getRevisions(int index); /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -33,43 +54,50 @@ public interface ListRevisionsResponseOrBuilder extends */ int getRevisionsCount(); /** + * + * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - java.util.List - getRevisionsOrBuilderList(); + java.util.List getRevisionsOrBuilderList(); /** + * + * *
    * The resulting list of Revisions.
    * 
* * repeated .google.cloud.run.v2.Revision revisions = 1; */ - com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( - int index); + com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListRevisions request to continue.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java index 43d1599..e4d9640 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for retrieving a list of Services.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesRequest} */ -public final class ListServicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListServicesRequest) ListServicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListServicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListServicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,37 @@ private ListServicesRequest( 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(); - - pageToken_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - showDeleted_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + showDeleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,36 +109,43 @@ private ListServicesRequest( } 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesRequest.class, com.google.cloud.run.v2.ListServicesRequest.Builder.class); + com.google.cloud.run.v2.ListServicesRequest.class, + com.google.cloud.run.v2.ListServicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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 @@ -128,31 +154,33 @@ 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 location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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 { @@ -163,11 +191,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Services to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -178,12 +209,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -192,30 +226,30 @@ 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; } } /** + * + * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * 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 { @@ -226,11 +260,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_; /** + * + * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -239,6 +276,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +288,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_); } @@ -277,15 +314,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -295,21 +330,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.run.v2.ListServicesRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.ListServicesRequest other = (com.google.cloud.run.v2.ListServicesRequest) obj; + com.google.cloud.run.v2.ListServicesRequest other = + (com.google.cloud.run.v2.ListServicesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,125 +360,133 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListServicesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListServicesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListServicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest 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 message for retrieving a list of Services.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesRequest} */ - 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.run.v2.ListServicesRequest) com.google.cloud.run.v2.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesRequest.class, com.google.cloud.run.v2.ListServicesRequest.Builder.class); + com.google.cloud.run.v2.ListServicesRequest.class, + com.google.cloud.run.v2.ListServicesRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListServicesRequest.newBuilder() @@ -454,16 +494,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(); @@ -479,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; } @java.lang.Override @@ -500,7 +539,8 @@ public com.google.cloud.run.v2.ListServicesRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListServicesRequest buildPartial() { - com.google.cloud.run.v2.ListServicesRequest result = new com.google.cloud.run.v2.ListServicesRequest(this); + com.google.cloud.run.v2.ListServicesRequest result = + new com.google.cloud.run.v2.ListServicesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -513,38 +553,39 @@ public com.google.cloud.run.v2.ListServicesRequest 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.run.v2.ListServicesRequest) { - return mergeFrom((com.google.cloud.run.v2.ListServicesRequest)other); + return mergeFrom((com.google.cloud.run.v2.ListServicesRequest) other); } else { super.mergeFrom(other); return this; @@ -598,20 +639,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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; @@ -620,22 +665,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 { @@ -643,72 +691,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 location and project to list resources on.
      * Location must be a valid GCP region, and may not be the "-" wildcard.
      * Format: projects/{projectnumber}/locations/{location}
      * 
* - * 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 Services to return in this call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -716,30 +780,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Services to return in this 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 Services to return in this call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -747,19 +817,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; @@ -768,21 +840,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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 { @@ -790,69 +863,79 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; } /** + * + * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token received from a previous call to ListServices.
      * All other parameters must match.
      * 
* * 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; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -860,37 +943,43 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; onChanged(); return this; } /** + * + * *
      * If true, returns deleted (but unexpired) resources along with active ones.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { - + showDeleted_ = 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); } @@ -900,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListServicesRequest) private static final com.google.cloud.run.v2.ListServicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListServicesRequest(); } @@ -914,16 +1003,16 @@ public static com.google.cloud.run.v2.ListServicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java index eba5fc6..7128aa4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java @@ -1,74 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface ListServicesRequestOrBuilder extends +public interface ListServicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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 location and project to list resources on.
    * Location must be a valid GCP region, and may not be the "-" wildcard.
    * Format: projects/{projectnumber}/locations/{location}
    * 
* - * 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 Services to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token received from a previous call to ListServices.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * If true, returns deleted (but unexpired) resources along with active ones.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java index 15cba97..86a8305 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Response message containing a list of Services.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesResponse} */ -public final class ListServicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListServicesResponse) ListServicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListServicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListServicesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + services_.add( + input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry)); + break; } - services_.add( - input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListServicesResponse( } 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)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -94,22 +112,27 @@ private ListServicesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesResponse.class, com.google.cloud.run.v2.ListServicesResponse.Builder.class); + com.google.cloud.run.v2.ListServicesResponse.class, + com.google.cloud.run.v2.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; private java.util.List services_; /** + * + * *
    * The resulting list of Services.
    * 
@@ -121,6 +144,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * The resulting list of Services.
    * 
@@ -128,11 +153,13 @@ public java.util.List getServicesList() { * repeated .google.cloud.run.v2.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** + * + * *
    * The resulting list of Services.
    * 
@@ -144,6 +171,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -155,6 +184,8 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -162,20 +193,22 @@ public com.google.cloud.run.v2.Service getServices(int index) { * repeated .google.cloud.run.v2.Service services = 1; */ @java.lang.Override - public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +217,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 indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * 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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,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 < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -245,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +291,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.run.v2.ListServicesResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListServicesResponse other = (com.google.cloud.run.v2.ListServicesResponse) obj; + com.google.cloud.run.v2.ListServicesResponse other = + (com.google.cloud.run.v2.ListServicesResponse) obj; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListServicesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListServicesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListServicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse 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 message containing a list of Services.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListServicesResponse} */ - 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.run.v2.ListServicesResponse) com.google.cloud.run.v2.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListServicesResponse.class, com.google.cloud.run.v2.ListServicesResponse.Builder.class); + com.google.cloud.run.v2.ListServicesResponse.class, + com.google.cloud.run.v2.ListServicesResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListServicesResponse.newBuilder() @@ -411,17 +451,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) { getServicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; } @java.lang.Override @@ -458,7 +498,8 @@ public com.google.cloud.run.v2.ListServicesResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListServicesResponse buildPartial() { - com.google.cloud.run.v2.ListServicesResponse result = new com.google.cloud.run.v2.ListServicesResponse(this); + com.google.cloud.run.v2.ListServicesResponse result = + new com.google.cloud.run.v2.ListServicesResponse(this); int from_bitField0_ = bitField0_; if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.cloud.run.v2.ListServicesResponse 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.run.v2.ListServicesResponse) { - return mergeFrom((com.google.cloud.run.v2.ListServicesResponse)other); + return mergeFrom((com.google.cloud.run.v2.ListServicesResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListServicesResponse other) { servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServicesFieldBuilder() + : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> servicesBuilder_; + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> + servicesBuilder_; /** + * + * *
      * The resulting list of Services.
      * 
@@ -605,6 +655,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -619,6 +671,8 @@ public int getServicesCount() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -633,14 +687,15 @@ public com.google.cloud.run.v2.Service getServices(int index) { } } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder setServices( - int index, com.google.cloud.run.v2.Service value) { + public Builder setServices(int index, com.google.cloud.run.v2.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,14 +709,15 @@ public Builder setServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder setServices( - int index, com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setServices(int index, com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.set(index, builderForValue.build()); @@ -672,6 +728,8 @@ public Builder setServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -692,14 +750,15 @@ public Builder addServices(com.google.cloud.run.v2.Service value) { return this; } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices( - int index, com.google.cloud.run.v2.Service value) { + public Builder addServices(int index, com.google.cloud.run.v2.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +772,15 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices( - com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder addServices(com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -731,14 +791,15 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public Builder addServices( - int index, com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder addServices(int index, com.google.cloud.run.v2.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(index, builderForValue.build()); @@ -749,6 +810,8 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -759,8 +822,7 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -768,6 +830,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -785,6 +849,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -802,39 +868,44 @@ public Builder removeServices(int index) { return this; } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.Service.Builder getServicesBuilder( - int index) { + public com.google.cloud.run.v2.Service.Builder getServicesBuilder(int index) { return getServicesFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) { if (servicesBuilder_ == null) { - return services_.get(index); } else { + return services_.get(index); + } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +913,8 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -849,42 +922,47 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( * repeated .google.cloud.run.v2.Service services = 1; */ public com.google.cloud.run.v2.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - com.google.cloud.run.v2.Service.getDefaultInstance()); + return getServicesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Service.getDefaultInstance()); } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public com.google.cloud.run.v2.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Service.getDefaultInstance()); + public com.google.cloud.run.v2.Service.Builder addServicesBuilder(int index) { + return getServicesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Service.getDefaultInstance()); } /** + * + * *
      * The resulting list of Services.
      * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - public java.util.List - getServicesBuilderList() { + public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + servicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder>( + services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); services_ = null; } return servicesBuilder_; @@ -892,19 +970,21 @@ public com.google.cloud.run.v2.Service.Builder addServicesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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; @@ -913,21 +993,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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 { @@ -935,64 +1016,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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 indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListServices request to continue.
      * 
* * 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; } + @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); } @@ -1002,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListServicesResponse) private static final com.google.cloud.run.v2.ListServicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListServicesResponse(); } @@ -1016,16 +1104,16 @@ public static com.google.cloud.run.v2.ListServicesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListServicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java index 9c9c363..af2c849 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.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/run/v2/service.proto package com.google.cloud.run.v2; -public interface ListServicesResponseOrBuilder extends +public interface ListServicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * The resulting list of Services.
    * 
@@ -25,6 +44,8 @@ public interface ListServicesResponseOrBuilder extends */ com.google.cloud.run.v2.Service getServices(int index); /** + * + * *
    * The resulting list of Services.
    * 
@@ -33,43 +54,50 @@ public interface ListServicesResponseOrBuilder extends */ int getServicesCount(); /** + * + * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - java.util.List - getServicesOrBuilderList(); + java.util.List getServicesOrBuilderList(); /** + * + * *
    * The resulting list of Services.
    * 
* * repeated .google.cloud.run.v2.Service services = 1; */ - com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( - int index); + com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListServices request to continue.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java index 879b0b0..ce645e1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * ResourceRequirements describes the compute resource requirements.
  * 
* * Protobuf type {@code google.cloud.run.v2.ResourceRequirements} */ -public final class ResourceRequirements extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceRequirements extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ResourceRequirements) ResourceRequirementsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceRequirements.newBuilder() to construct. private ResourceRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceRequirements() { - } + + private ResourceRequirements() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceRequirements(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceRequirements( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +69,31 @@ private ResourceRequirements( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - limits_ = com.google.protobuf.MapField.newMapField( - LimitsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + limits_ = + com.google.protobuf.MapField.newMapField(LimitsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry limits__ = + input.readMessage( + LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + limits_.getMutableMap().put(limits__.getKey(), limits__.getValue()); + break; } - com.google.protobuf.MapEntry - limits__ = input.readMessage( - LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - limits_.getMutableMap().put( - limits__.getKey(), limits__.getValue()); - break; - } - case 16: { - - cpuIdle_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + cpuIdle_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,57 +101,57 @@ private ResourceRequirements( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_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 1: return internalGetLimits(); 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ResourceRequirements.class, com.google.cloud.run.v2.ResourceRequirements.Builder.class); + com.google.cloud.run.v2.ResourceRequirements.class, + com.google.cloud.run.v2.ResourceRequirements.Builder.class); } public static final int LIMITS_FIELD_NUMBER = 1; + private static final class LimitsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> limits_; - private com.google.protobuf.MapField - internalGetLimits() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField limits_; + + private com.google.protobuf.MapField internalGetLimits() { if (limits_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); } return limits_; } @@ -144,6 +160,8 @@ public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** + * + * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -154,22 +172,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
-
   @java.lang.Override
-  public boolean containsLimits(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLimits(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLimits().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLimitsMap()} instead.
-   */
+  /** Use {@link #getLimitsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLimits() {
     return getLimitsMap();
   }
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -181,11 +199,12 @@ public java.util.Map getLimits() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-
   public java.util.Map getLimitsMap() {
     return internalGetLimits().getMap();
   }
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -197,16 +216,16 @@ public java.util.Map getLimitsMap() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getLimitsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLimits().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -218,12 +237,11 @@ public java.lang.String getLimitsOrDefault(
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getLimitsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -233,11 +251,14 @@ public java.lang.String getLimitsOrThrow(
   public static final int CPU_IDLE_FIELD_NUMBER = 2;
   private boolean cpuIdle_;
   /**
+   *
+   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; + * * @return The cpuIdle. */ @java.lang.Override @@ -246,6 +267,7 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,14 +279,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLimits(), - LimitsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLimits(), LimitsDefaultEntryHolder.defaultEntry, 1); if (cpuIdle_ != false) { output.writeBool(2, cpuIdle_); } @@ -277,19 +294,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetLimits().getMap().entrySet()) { - com.google.protobuf.MapEntry - limits__ = LimitsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, limits__); + for (java.util.Map.Entry entry : + internalGetLimits().getMap().entrySet()) { + com.google.protobuf.MapEntry limits__ = + LimitsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, limits__); } if (cpuIdle_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, cpuIdle_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, cpuIdle_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,17 +315,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.run.v2.ResourceRequirements)) { return super.equals(obj); } - com.google.cloud.run.v2.ResourceRequirements other = (com.google.cloud.run.v2.ResourceRequirements) obj; + com.google.cloud.run.v2.ResourceRequirements other = + (com.google.cloud.run.v2.ResourceRequirements) obj; - if (!internalGetLimits().equals( - other.internalGetLimits())) return false; - if (getCpuIdle() - != other.getCpuIdle()) return false; + if (!internalGetLimits().equals(other.internalGetLimits())) return false; + if (getCpuIdle() != other.getCpuIdle()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,147 +341,153 @@ public int hashCode() { hash = (53 * hash) + internalGetLimits().hashCode(); } hash = (37 * hash) + CPU_IDLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCpuIdle()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCpuIdle()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ResourceRequirements parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ResourceRequirements parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ResourceRequirements parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements 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; } /** + * + * *
    * ResourceRequirements describes the compute resource requirements.
    * 
* * Protobuf type {@code google.cloud.run.v2.ResourceRequirements} */ - 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.run.v2.ResourceRequirements) com.google.cloud.run.v2.ResourceRequirementsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetLimits(); 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 1: return internalGetMutableLimits(); 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ResourceRequirements.class, com.google.cloud.run.v2.ResourceRequirements.Builder.class); + com.google.cloud.run.v2.ResourceRequirements.class, + com.google.cloud.run.v2.ResourceRequirements.Builder.class); } // Construct using com.google.cloud.run.v2.ResourceRequirements.newBuilder() @@ -474,16 +495,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(); @@ -494,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_ResourceRequirements_descriptor; } @java.lang.Override @@ -515,7 +535,8 @@ public com.google.cloud.run.v2.ResourceRequirements build() { @java.lang.Override public com.google.cloud.run.v2.ResourceRequirements buildPartial() { - com.google.cloud.run.v2.ResourceRequirements result = new com.google.cloud.run.v2.ResourceRequirements(this); + com.google.cloud.run.v2.ResourceRequirements result = + new com.google.cloud.run.v2.ResourceRequirements(this); int from_bitField0_ = bitField0_; result.limits_ = internalGetLimits(); result.limits_.makeImmutable(); @@ -528,38 +549,39 @@ public com.google.cloud.run.v2.ResourceRequirements 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.run.v2.ResourceRequirements) { - return mergeFrom((com.google.cloud.run.v2.ResourceRequirements)other); + return mergeFrom((com.google.cloud.run.v2.ResourceRequirements) other); } else { super.mergeFrom(other); return this; @@ -568,8 +590,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.run.v2.ResourceRequirements other) { if (other == com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()) return this; - internalGetMutableLimits().mergeFrom( - other.internalGetLimits()); + internalGetMutableLimits().mergeFrom(other.internalGetLimits()); if (other.getCpuIdle() != false) { setCpuIdle(other.getCpuIdle()); } @@ -601,24 +622,24 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> limits_; - private com.google.protobuf.MapField - internalGetLimits() { + private com.google.protobuf.MapField limits_; + + private com.google.protobuf.MapField internalGetLimits() { if (limits_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); } return limits_; } + private com.google.protobuf.MapField - internalGetMutableLimits() { - onChanged();; + internalGetMutableLimits() { + onChanged(); + ; if (limits_ == null) { - limits_ = com.google.protobuf.MapField.newMapField( - LimitsDefaultEntryHolder.defaultEntry); + limits_ = com.google.protobuf.MapField.newMapField(LimitsDefaultEntryHolder.defaultEntry); } if (!limits_.isMutable()) { limits_ = limits_.copy(); @@ -630,6 +651,8 @@ public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** + * + * *
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -640,22 +663,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
-
     @java.lang.Override
-    public boolean containsLimits(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLimits(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLimits().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLimitsMap()} instead.
-     */
+    /** Use {@link #getLimitsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLimits() {
       return getLimitsMap();
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -667,11 +690,12 @@ public java.util.Map getLimits() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-
     public java.util.Map getLimitsMap() {
       return internalGetLimits().getMap();
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -683,16 +707,17 @@ public java.util.Map getLimitsMap() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-
     public java.lang.String getLimitsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLimits().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -704,12 +729,11 @@ public java.lang.String getLimitsOrDefault(
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-
-    public java.lang.String getLimitsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+    public java.lang.String getLimitsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -717,11 +741,12 @@ public java.lang.String getLimitsOrThrow(
     }
 
     public Builder clearLimits() {
-      internalGetMutableLimits().getMutableMap()
-          .clear();
+      internalGetMutableLimits().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -732,23 +757,21 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-
-    public Builder removeLimits(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLimits().getMutableMap()
-          .remove(key);
+    public Builder removeLimits(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLimits().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLimits() {
+    public java.util.Map getMutableLimits() {
       return internalGetMutableLimits().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -759,19 +782,20 @@ public Builder removeLimits(
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLimits(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");
+      }
 
-      internalGetMutableLimits().getMutableMap()
-          .put(key, value);
+      internalGetMutableLimits().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -782,21 +806,21 @@ public Builder putLimits(
      *
      * map<string, string> limits = 1;
      */
-
-    public Builder putAllLimits(
-        java.util.Map values) {
-      internalGetMutableLimits().getMutableMap()
-          .putAll(values);
+    public Builder putAllLimits(java.util.Map values) {
+      internalGetMutableLimits().getMutableMap().putAll(values);
       return this;
     }
 
-    private boolean cpuIdle_ ;
+    private boolean cpuIdle_;
     /**
+     *
+     *
      * 
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; + * * @return The cpuIdle. */ @java.lang.Override @@ -804,37 +828,43 @@ public boolean getCpuIdle() { return cpuIdle_; } /** + * + * *
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; + * * @param value The cpuIdle to set. * @return This builder for chaining. */ public Builder setCpuIdle(boolean value) { - + cpuIdle_ = value; onChanged(); return this; } /** + * + * *
      * Determines whether CPU should be throttled or not outside of requests.
      * 
* * bool cpu_idle = 2; + * * @return This builder for chaining. */ public Builder clearCpuIdle() { - + cpuIdle_ = 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); } @@ -844,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ResourceRequirements) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ResourceRequirements) private static final com.google.cloud.run.v2.ResourceRequirements DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ResourceRequirements(); } @@ -858,16 +888,16 @@ public static com.google.cloud.run.v2.ResourceRequirements getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceRequirements parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceRequirements(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceRequirements(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -882,6 +912,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java index f6c05be..34a5a45 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ResourceRequirementsOrBuilder extends +public interface ResourceRequirementsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ResourceRequirements) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -20,6 +38,8 @@ public interface ResourceRequirementsOrBuilder extends
    */
   int getLimitsCount();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -30,15 +50,13 @@ public interface ResourceRequirementsOrBuilder extends
    *
    * map<string, string> limits = 1;
    */
-  boolean containsLimits(
-      java.lang.String key);
-  /**
-   * Use {@link #getLimitsMap()} instead.
-   */
+  boolean containsLimits(java.lang.String key);
+  /** Use {@link #getLimitsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLimits();
+  java.util.Map getLimits();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -49,9 +67,10 @@ boolean containsLimits(
    *
    * map<string, string> limits = 1;
    */
-  java.util.Map
-  getLimitsMap();
+  java.util.Map getLimitsMap();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -64,11 +83,13 @@ boolean containsLimits(
    */
 
   /* nullable */
-java.lang.String getLimitsOrDefault(
+  java.lang.String getLimitsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -79,16 +100,17 @@ java.lang.String getLimitsOrDefault(
    *
    * map<string, string> limits = 1;
    */
-
-  java.lang.String getLimitsOrThrow(
-      java.lang.String key);
+  java.lang.String getLimitsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; + * * @return The cpuIdle. */ boolean getCpuIdle(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index 1f4135a..decd71d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.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/run/v2/revision.proto package com.google.cloud.run.v2; /** + * + * *
  * A Revision is an immutable snapshot of code and configuration.  A Revision
  * references a container image. Revisions are only created by updates to its
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Revision}
  */
-public final class Revision extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Revision extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Revision)
     RevisionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Revision.newBuilder() to construct.
   private Revision(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Revision() {
     name_ = "";
     uid_ = "";
@@ -38,16 +56,15 @@ private Revision() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Revision();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Revision(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -67,231 +84,260 @@ private Revision(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uid_ = s;
-            break;
-          }
-          case 24: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            generation_ = input.readInt64();
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              uid_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              annotations_ = com.google.protobuf.MapField.newMapField(
-                  AnnotationsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+          case 24:
+            {
+              generation_ = input.readInt64();
+              break;
             }
-            com.google.protobuf.MapEntry
-            annotations__ = input.readMessage(
-                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            annotations_.getMutableMap().put(
-                annotations__.getKey(), annotations__.getValue());
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 34:
+            {
+              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;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                annotations_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AnnotationsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry annotations__ =
+                  input.readMessage(
+                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 50:
+            {
+              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;
             }
-            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: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (deleteTime_ != null) {
-              subBuilder = deleteTime_.toBuilder();
+          case 66:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (deleteTime_ != null) {
+                subBuilder = deleteTime_.toBuilder();
+              }
+              deleteTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deleteTime_);
+                deleteTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deleteTime_);
-              deleteTime_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (expireTime_ != null) {
+                subBuilder = expireTime_.toBuilder();
+              }
+              expireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(expireTime_);
+                expireTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 80:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (expireTime_ != null) {
-              subBuilder = expireTime_.toBuilder();
-            }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
+              launchStage_ = rawValue;
+              break;
             }
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
-
-            launchStage_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            service_ = s;
-            break;
-          }
-          case 98: {
-            com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
-            if (scaling_ != null) {
-              subBuilder = scaling_.toBuilder();
+              service_ = s;
+              break;
             }
-            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scaling_);
-              scaling_ = subBuilder.buildPartial();
+          case 98:
+            {
+              com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
+              if (scaling_ != null) {
+                subBuilder = scaling_.toBuilder();
+              }
+              scaling_ =
+                  input.readMessage(
+                      com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scaling_);
+                scaling_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 106: {
-            com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
-            if (vpcAccess_ != null) {
-              subBuilder = vpcAccess_.toBuilder();
+          case 106:
+            {
+              com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
+              if (vpcAccess_ != null) {
+                subBuilder = vpcAccess_.toBuilder();
+              }
+              vpcAccess_ =
+                  input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vpcAccess_);
+                vpcAccess_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            vpcAccess_ = input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vpcAccess_);
-              vpcAccess_ = subBuilder.buildPartial();
+          case 122:
+            {
+              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 130:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 122: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
+            }
+          case 138:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                containers_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              containers_.add(
+                  input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          case 146:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                volumes_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              volumes_.add(
+                  input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
+              break;
             }
+          case 160:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 130: {
-            java.lang.String s = input.readStringRequireUtf8();
+              executionEnvironment_ = rawValue;
+              break;
+            }
+          case 170:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccount_ = s;
-            break;
-          }
-          case 138: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              containers_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              encryptionKey_ = s;
+              break;
             }
-            containers_.add(
-                input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
-            break;
-          }
-          case 146: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              volumes_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 240:
+            {
+              reconciling_ = input.readBool();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 160: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 170: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            encryptionKey_ = s;
-            break;
-          }
-          case 240: {
-
-            reconciling_ = input.readBool();
-            break;
-          }
-          case 250: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              conditions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 250:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                conditions_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              conditions_.add(
+                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
+              break;
             }
-            conditions_.add(
-                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-            break;
-          }
-          case 256: {
-
-            observedGeneration_ = input.readInt64();
-            break;
-          }
-          case 266: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            logUri_ = s;
-            break;
-          }
-          case 272: {
+          case 256:
+            {
+              observedGeneration_ = input.readInt64();
+              break;
+            }
+          case 266:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            maxInstanceRequestConcurrency_ = input.readInt32();
-            break;
-          }
-          case 794: {
-            java.lang.String s = input.readStringRequireUtf8();
+              logUri_ = s;
+              break;
+            }
+          case 272:
+            {
+              maxInstanceRequestConcurrency_ = input.readInt32();
+              break;
+            }
+          case 794:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -299,8 +345,7 @@ private Revision(
     } 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_ & 0x00000004) != 0)) {
         containers_ = java.util.Collections.unmodifiableList(containers_);
@@ -315,29 +360,30 @@ private Revision(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.RevisionProto
+        .internal_static_google_cloud_run_v2_Revision_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 internalGetLabels();
       case 5:
         return internalGetAnnotations();
       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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionProto
+        .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Revision.class, com.google.cloud.run.v2.Revision.Builder.class);
   }
@@ -345,11 +391,14 @@ protected com.google.protobuf.MapField internalGetMapField(
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -358,29 +407,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; } } /** + * + * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -391,12 +440,15 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -405,30 +457,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -439,12 +491,15 @@ public java.lang.String getUid() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -453,24 +508,23 @@ public long getGeneration() { } public static final int LABELS_FIELD_NUMBER = 4; + 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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_LabelsEntry_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.run.v2.RevisionProto + .internal_static_google_cloud_run_v2_Revision_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() { + + 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_; } @@ -479,6 +533,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -493,22 +549,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -524,11 +580,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -544,16 +601,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -569,12 +626,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -582,24 +638,24 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 5;
+
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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.run.v2.RevisionProto
+                .internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> annotations_;
+
+  private com.google.protobuf.MapField annotations_;
+
   private com.google.protobuf.MapField
-  internalGetAnnotations() {
+      internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
@@ -608,28 +664,30 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -637,11 +695,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -649,16 +708,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -666,12 +726,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -681,11 +740,15 @@ public java.lang.String getAnnotationsOrThrow( public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -693,11 +756,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -705,11 +772,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -719,11 +789,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .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 @@ -731,11 +805,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .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 @@ -743,11 +821,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .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() { @@ -757,12 +838,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -770,12 +855,16 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -783,12 +872,15 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -798,13 +890,17 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -812,13 +908,17 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -826,13 +926,16 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -842,6 +945,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int LAUNCH_STAGE_FIELD_NUMBER = 10; private int launchStage_; /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -850,12 +955,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -864,9 +973,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ - @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; @@ -875,11 +986,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SERVICE_FIELD_NUMBER = 11; private volatile java.lang.Object service_; /** + * + * *
    * Output only. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ @java.lang.Override @@ -888,29 +1004,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. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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 { @@ -921,11 +1039,14 @@ public java.lang.String getService() { public static final int SCALING_FIELD_NUMBER = 12; private com.google.cloud.run.v2.RevisionScaling scaling_; /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return Whether the scaling field is set. */ @java.lang.Override @@ -933,18 +1054,25 @@ public boolean hasScaling() { return scaling_ != null; } /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return The scaling. */ @java.lang.Override public com.google.cloud.run.v2.RevisionScaling getScaling() { - return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } /** + * + * *
    * Scaling settings for this revision.
    * 
@@ -959,12 +1087,15 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { public static final int VPC_ACCESS_FIELD_NUMBER = 13; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -972,12 +1103,15 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return The vpcAccess. */ @java.lang.Override @@ -985,6 +1119,8 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -1000,11 +1136,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 34;
   private int maxInstanceRequestConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -1015,11 +1154,14 @@ public int getMaxInstanceRequestConcurrency() { public static final int TIMEOUT_FIELD_NUMBER = 15; private com.google.protobuf.Duration timeout_; /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -1027,11 +1169,14 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return The timeout. */ @java.lang.Override @@ -1039,6 +1184,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -1053,6 +1200,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 16; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -1060,6 +1209,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ @java.lang.Override @@ -1068,14 +1218,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -1083,16 +1234,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 16; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1103,6 +1253,8 @@ public java.lang.String getServiceAccount() { public static final int CONTAINERS_FIELD_NUMBER = 17; private java.util.List containers_; /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1115,6 +1267,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1123,11 +1277,13 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getContainersOrBuilderList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1140,6 +1296,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1152,6 +1310,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
     return containers_.get(index);
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1160,14 +1320,15 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index) {
+  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
     return containers_.get(index);
   }
 
   public static final int VOLUMES_FIELD_NUMBER = 18;
   private java.util.List volumes_;
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -1179,6 +1340,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1186,11 +1349,13 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1202,6 +1367,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1213,6 +1380,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1220,41 +1389,51 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; private int executionEnvironment_; /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ - @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override + public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 21; private volatile java.lang.Object encryptionKey_; /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -1262,6 +1441,7 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -1270,14 +1450,15 @@ public java.lang.String getEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; } } /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -1285,16 +1466,15 @@ public java.lang.String getEncryptionKey() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getEncryptionKeyBytes() { + public com.google.protobuf.ByteString getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -1305,6 +1485,8 @@ public java.lang.String getEncryptionKey() { public static final int RECONCILING_FIELD_NUMBER = 30; private boolean reconciling_; /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -1312,6 +1494,7 @@ public java.lang.String getEncryptionKey() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1322,71 +1505,92 @@ public boolean getReconciling() { public static final int CONDITIONS_FIELD_NUMBER = 31; private java.util.List conditions_; /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.Condition getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int OBSERVED_GENERATION_FIELD_NUMBER = 32; private long observedGeneration_; /** + * + * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -1394,6 +1598,7 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -1404,11 +1609,14 @@ public long getObservedGeneration() { public static final int LOG_URI_FIELD_NUMBER = 33; private volatile java.lang.Object logUri_; /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The logUri. */ @java.lang.Override @@ -1417,29 +1625,29 @@ public java.lang.String getLogUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logUri_ = s; return s; } } /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for logUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogUriBytes() { + public com.google.protobuf.ByteString getLogUriBytes() { java.lang.Object ref = logUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logUri_ = b; return b; } else { @@ -1450,12 +1658,15 @@ public java.lang.String getLogUri() { public static final int ETAG_FIELD_NUMBER = 99; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1464,30 +1675,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1496,6 +1707,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1507,8 +1719,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_); } @@ -1518,18 +1729,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (generation_ != 0L) { output.writeInt64(3, generation_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -1566,7 +1769,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(18, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -1606,100 +1811,88 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, generation_); - } - 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(4, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + } + 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(4, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, launchStage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getScaling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, executionEnvironment_); + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, encryptionKey_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(30, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(32, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(32, observedGeneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, logUri_); } if (maxInstanceRequestConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(34, maxInstanceRequestConcurrency_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 34, maxInstanceRequestConcurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1712,82 +1905,60 @@ 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.run.v2.Revision)) { return super.equals(obj); } com.google.cloud.run.v2.Revision other = (com.google.cloud.run.v2.Revision) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getGeneration() - != other.getGeneration()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getGeneration() != other.getGeneration()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (launchStage_ != other.launchStage_) return false; - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling() - .equals(other.getScaling())) return false; + if (!getScaling().equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess() - .equals(other.getVpcAccess())) return false; + if (!getVpcAccess().equals(other.getVpcAccess())) return false; } - if (getMaxInstanceRequestConcurrency() - != other.getMaxInstanceRequestConcurrency()) return false; + if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) + return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getContainersList() - .equals(other.getContainersList())) return false; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; + } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getContainersList().equals(other.getContainersList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getObservedGeneration() - != other.getObservedGeneration()) return false; - if (!getLogUri() - .equals(other.getLogUri())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; + if (!getLogUri().equals(other.getLogUri())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1804,8 +1975,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().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()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1863,15 +2033,13 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -1881,97 +2049,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Revision parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Revision parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Revision 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.run.v2.Revision parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Revision parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Revision 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.run.v2.Revision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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.run.v2.Revision 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; } /** + * + * *
    * A Revision is an immutable snapshot of code and configuration.  A Revision
    * references a container image. Revisions are only created by updates to its
@@ -1980,47 +2154,47 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Revision}
    */
-  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.run.v2.Revision)
       com.google.cloud.run.v2.RevisionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_Revision_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         case 5:
           return internalGetAnnotations();
         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 internalGetMutableLabels();
         case 5:
           return internalGetMutableAnnotations();
         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.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.Revision.class, com.google.cloud.run.v2.Revision.Builder.class);
+              com.google.cloud.run.v2.Revision.class,
+              com.google.cloud.run.v2.Revision.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Revision.newBuilder()
@@ -2028,19 +2202,19 @@ 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) {
         getContainersFieldBuilder();
         getVolumesFieldBuilder();
         getConditionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2136,9 +2310,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionProto.internal_static_google_cloud_run_v2_Revision_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionProto
+          .internal_static_google_cloud_run_v2_Revision_descriptor;
     }
 
     @java.lang.Override
@@ -2246,38 +2420,39 @@ public com.google.cloud.run.v2.Revision 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.run.v2.Revision) {
-        return mergeFrom((com.google.cloud.run.v2.Revision)other);
+        return mergeFrom((com.google.cloud.run.v2.Revision) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2297,10 +2472,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
       if (other.getGeneration() != 0L) {
         setGeneration(other.getGeneration());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -2354,9 +2527,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             containersBuilder_ = null;
             containers_ = other.containers_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            containersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getContainersFieldBuilder() : null;
+            containersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getContainersFieldBuilder()
+                    : null;
           } else {
             containersBuilder_.addAllMessages(other.containers_);
           }
@@ -2380,9 +2554,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             volumesBuilder_ = null;
             volumes_ = other.volumes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            volumesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVolumesFieldBuilder() : null;
+            volumesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVolumesFieldBuilder()
+                    : null;
           } else {
             volumesBuilder_.addAllMessages(other.volumes_);
           }
@@ -2416,9 +2591,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2463,22 +2639,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2487,20 +2666,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2508,54 +2688,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The unique name of this Revision.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2563,19 +2750,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -2584,21 +2773,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -2606,70 +2796,80 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -2677,53 +2877,58 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 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(); @@ -2735,6 +2940,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2749,22 +2956,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2780,11 +2987,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2800,16 +3008,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2825,12 +3034,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @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();
       }
@@ -2838,11 +3046,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2857,23 +3066,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2888,19 +3095,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2915,30 +3123,29 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    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> annotations_;
+    private com.google.protobuf.MapField annotations_;
+
     private com.google.protobuf.MapField
-    internalGetAnnotations() {
+        internalGetAnnotations() {
       if (annotations_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AnnotationsDefaultEntryHolder.defaultEntry);
       }
       return annotations_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableAnnotations() {
-      onChanged();;
+        internalGetMutableAnnotations() {
+      onChanged();
+      ;
       if (annotations_ == null) {
-        annotations_ = com.google.protobuf.MapField.newMapField(
-            AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ =
+            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -2950,28 +3157,30 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2979,11 +3188,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2991,16 +3201,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -3008,12 +3219,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3021,102 +3231,118 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(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"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } 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_; /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3132,14 +3358,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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(); @@ -3150,17 +3379,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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; } @@ -3172,11 +3405,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3190,48 +3427,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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> 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_; @@ -3239,39 +3492,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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-modified time.
      * 
* - * .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-modified time.
      * 
* - * .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-modified time.
      * 
* - * .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) { @@ -3287,14 +3559,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .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(); @@ -3305,17 +3580,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .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; } @@ -3327,11 +3606,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .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) { @@ -3345,48 +3628,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .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-modified time.
      * 
* - * .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-modified time.
      * 
* - * .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_; @@ -3394,42 +3693,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3445,15 +3763,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3464,18 +3785,22 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3487,12 +3812,16 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3506,51 +3835,67 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3558,45 +3903,64 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3612,16 +3976,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -3632,19 +3999,23 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -3656,13 +4027,17 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -3676,54 +4051,70 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted. It is only populated as a response to a Delete
      * request.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3731,6 +4122,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int launchStage_ = 0; /** + * + * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -3739,12 +4132,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -3753,16 +4150,19 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { - + launchStage_ = value; onChanged(); return this; } /** + * + * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -3771,6 +4171,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ @java.lang.Override @@ -3780,6 +4181,8 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -3788,6 +4191,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3795,12 +4199,14 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Set the launch stage to a preview stage on write to allow use of preview
      * features in that stage. On read, describes whether the resource uses
@@ -3809,10 +4215,11 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -3820,18 +4227,22 @@ public Builder clearLaunchStage() { private java.lang.Object service_ = ""; /** + * + * *
      * Output only. The name of the parent service.
      * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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; @@ -3840,20 +4251,23 @@ public java.lang.String getService() { } } /** + * + * *
      * Output only. The name of the parent service.
      * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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 { @@ -3861,54 +4275,67 @@ public java.lang.String getService() { } } /** + * + * *
      * Output only. The name of the parent service.
      * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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. The name of the parent service.
      * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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. The name of the parent service.
      * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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; @@ -3916,34 +4343,47 @@ public Builder setServiceBytes( private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder> + scalingBuilder_; /** + * + * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** + * + * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } else { return scalingBuilder_.getMessage(); } } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -3964,14 +4404,15 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; */ - public Builder setScaling( - com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { + public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); onChanged(); @@ -3982,6 +4423,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -3992,7 +4435,9 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { if (scaling_ != null) { scaling_ = - com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_) + .mergeFrom(value) + .buildPartial(); } else { scaling_ = value; } @@ -4004,6 +4449,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4022,6 +4469,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4029,11 +4478,13 @@ public Builder clearScaling() { * .google.cloud.run.v2.RevisionScaling scaling = 12; */ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { - + onChanged(); return getScalingFieldBuilder().getBuilder(); } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4044,11 +4495,14 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { if (scalingBuilder_ != null) { return scalingBuilder_.getMessageOrBuilder(); } else { - return scaling_ == null ? - com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4056,14 +4510,17 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * .google.cloud.run.v2.RevisionScaling scaling = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder> getScalingFieldBuilder() { if (scalingBuilder_ == null) { - scalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder>( - getScaling(), - getParentForChildren(), - isClean()); + scalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder>( + getScaling(), getParentForChildren(), isClean()); scaling_ = null; } return scalingBuilder_; @@ -4071,36 +4528,49 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { private com.google.cloud.run.v2.VpcAccess vpcAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> vpcAccessBuilder_; + com.google.cloud.run.v2.VpcAccess, + com.google.cloud.run.v2.VpcAccess.Builder, + com.google.cloud.run.v2.VpcAccessOrBuilder> + vpcAccessBuilder_; /** + * + * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** + * + * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return The vpcAccess. */ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { if (vpcAccessBuilder_ == null) { - return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; + return vpcAccess_ == null + ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() + : vpcAccess_; } else { return vpcAccessBuilder_.getMessage(); } } /** + * + * *
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4122,6 +4592,8 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4129,8 +4601,7 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
      *
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
-    public Builder setVpcAccess(
-        com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
+    public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
       if (vpcAccessBuilder_ == null) {
         vpcAccess_ = builderForValue.build();
         onChanged();
@@ -4141,6 +4612,8 @@ public Builder setVpcAccess(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4152,7 +4625,9 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       if (vpcAccessBuilder_ == null) {
         if (vpcAccess_ != null) {
           vpcAccess_ =
-            com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_).mergeFrom(value).buildPartial();
+              com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           vpcAccess_ = value;
         }
@@ -4164,6 +4639,8 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4183,6 +4660,8 @@ public Builder clearVpcAccess() {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4191,11 +4670,13 @@ public Builder clearVpcAccess() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
-      
+
       onChanged();
       return getVpcAccessFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4207,11 +4688,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
       if (vpcAccessBuilder_ != null) {
         return vpcAccessBuilder_.getMessageOrBuilder();
       } else {
-        return vpcAccess_ == null ?
-            com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
+        return vpcAccess_ == null
+            ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
+            : vpcAccess_;
       }
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration for this Revision. For more information, visit
      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -4220,26 +4704,32 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
+            com.google.cloud.run.v2.VpcAccess,
+            com.google.cloud.run.v2.VpcAccess.Builder,
+            com.google.cloud.run.v2.VpcAccessOrBuilder>
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(),
-                getParentForChildren(),
-                isClean());
+        vpcAccessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.VpcAccess,
+                com.google.cloud.run.v2.VpcAccess.Builder,
+                com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(), getParentForChildren(), isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
     }
 
-    private int maxInstanceRequestConcurrency_ ;
+    private int maxInstanceRequestConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -4247,30 +4737,36 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; @@ -4278,24 +4774,33 @@ public Builder clearMaxInstanceRequestConcurrency() { 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_; /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -4306,6 +4811,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4326,14 +4833,15 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; */ - 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(); @@ -4344,6 +4852,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4354,7 +4864,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; } @@ -4366,6 +4876,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4384,6 +4896,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4391,11 +4905,13 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 15; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4406,11 +4922,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_; } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4418,14 +4935,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 15; */ 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_; @@ -4433,6 +4953,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4440,13 +4962,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 16; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -4455,6 +4977,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4462,15 +4986,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 16; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -4478,6 +5001,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4485,20 +5010,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 16; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4506,15 +5033,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 16; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -4522,34 +5052,40 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 16; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private java.util.List containers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> containersBuilder_; + com.google.cloud.run.v2.Container, + com.google.cloud.run.v2.Container.Builder, + com.google.cloud.run.v2.ContainerOrBuilder> + containersBuilder_; /** + * + * *
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4565,6 +5101,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4580,6 +5118,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4595,6 +5135,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4602,8 +5144,7 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder setContainers(
-        int index, com.google.cloud.run.v2.Container value) {
+    public Builder setContainers(int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4617,6 +5158,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4636,6 +5179,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4657,6 +5202,8 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4664,8 +5211,7 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder addContainers(
-        int index, com.google.cloud.run.v2.Container value) {
+    public Builder addContainers(int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4679,6 +5225,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4686,8 +5234,7 @@ public Builder addContainers(
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public Builder addContainers(
-        com.google.cloud.run.v2.Container.Builder builderForValue) {
+    public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderForValue) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
         containers_.add(builderForValue.build());
@@ -4698,6 +5245,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4717,6 +5266,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4728,8 +5279,7 @@ public Builder addAllContainers(
         java.lang.Iterable values) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, containers_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_);
         onChanged();
       } else {
         containersBuilder_.addAllMessages(values);
@@ -4737,6 +5287,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4755,6 +5307,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4773,6 +5327,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4780,11 +5336,12 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
-        int index) {
+    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index) {
       return getContainersFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4792,14 +5349,16 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-        int index) {
+    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
       if (containersBuilder_ == null) {
-        return containers_.get(index);  } else {
+        return containers_.get(index);
+      } else {
         return containersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4807,8 +5366,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public java.util.List 
-         getContainersOrBuilderList() {
+    public java.util.List
+        getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -4816,6 +5375,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4824,10 +5385,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
     public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
-      return getContainersFieldBuilder().addBuilder(
-          com.google.cloud.run.v2.Container.getDefaultInstance());
+      return getContainersFieldBuilder()
+          .addBuilder(com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4835,12 +5398,13 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
-        int index) {
-      return getContainersFieldBuilder().addBuilder(
-          index, com.google.cloud.run.v2.Container.getDefaultInstance());
+    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index) {
+      return getContainersFieldBuilder()
+          .addBuilder(index, com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4848,38 +5412,46 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 17;
      */
-    public java.util.List 
-         getContainersBuilderList() {
+    public java.util.List getContainersBuilderList() {
       return getContainersFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> 
+            com.google.cloud.run.v2.Container,
+            com.google.cloud.run.v2.Container.Builder,
+            com.google.cloud.run.v2.ContainerOrBuilder>
         getContainersFieldBuilder() {
       if (containersBuilder_ == null) {
-        containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder>(
-                containers_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        containersBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.run.v2.Container,
+                com.google.cloud.run.v2.Container.Builder,
+                com.google.cloud.run.v2.ContainerOrBuilder>(
+                containers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         containers_ = null;
       }
       return containersBuilder_;
     }
 
     private java.util.List volumes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureVolumesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         volumes_ = new java.util.ArrayList(volumes_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> volumesBuilder_;
+            com.google.cloud.run.v2.Volume,
+            com.google.cloud.run.v2.Volume.Builder,
+            com.google.cloud.run.v2.VolumeOrBuilder>
+        volumesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of Volumes to make available to containers.
      * 
@@ -4894,6 +5466,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4908,6 +5482,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4922,14 +5498,15 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder setVolumes( - int index, com.google.cloud.run.v2.Volume value) { + public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4943,14 +5520,15 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder setVolumes( - int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); @@ -4961,6 +5539,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4981,14 +5561,15 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes( - int index, com.google.cloud.run.v2.Volume value) { + public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5002,14 +5583,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes( - com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); @@ -5020,14 +5602,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public Builder addVolumes( - int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); @@ -5038,6 +5621,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5048,8 +5633,7 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -5057,6 +5641,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5074,6 +5660,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5091,39 +5679,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder( - int index) { + public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); } else { + return volumes_.get(index); + } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -5131,6 +5724,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5138,42 +5733,47 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 18; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -5181,51 +5781,65 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( private int executionEnvironment_ = 0; /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -5233,21 +5847,24 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm if (value == null) { throw new NullPointerException(); } - + executionEnvironment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; @@ -5255,6 +5872,8 @@ public Builder clearExecutionEnvironment() { private java.lang.Object encryptionKey_ = ""; /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5262,13 +5881,13 @@ public Builder clearExecutionEnvironment() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ public java.lang.String getEncryptionKey() { java.lang.Object ref = encryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; @@ -5277,6 +5896,8 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5284,15 +5905,14 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - public com.google.protobuf.ByteString - getEncryptionKeyBytes() { + public com.google.protobuf.ByteString getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -5300,6 +5920,8 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5307,20 +5929,22 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @param value The encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKey( - java.lang.String value) { + public Builder setEncryptionKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encryptionKey_ = value; onChanged(); return this; } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5328,15 +5952,18 @@ public Builder setEncryptionKey(
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearEncryptionKey() { - + encryptionKey_ = getDefaultInstance().getEncryptionKey(); onChanged(); return this; } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -5344,23 +5971,25 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -5368,6 +5997,7 @@ public Builder setEncryptionKeyBytes(
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5375,6 +6005,8 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -5382,16 +6014,19 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Service.reconciling` for additional information on
@@ -5399,34 +6034,43 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { - + reconciling_ = false; onChanged(); return this; } private java.util.List conditions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> conditionsBuilder_; + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5436,12 +6080,16 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5451,12 +6099,16 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5466,15 +6118,18 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.cloud.run.v2.Condition value) { + public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5488,12 +6143,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5507,12 +6166,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -5528,15 +6191,18 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.cloud.run.v2.Condition value) { + public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5550,15 +6216,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -5569,12 +6238,16 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5588,19 +6261,22 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -5608,12 +6284,16 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5626,12 +6306,16 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5644,42 +6328,53 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( - int index) { + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5687,59 +6382,74 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.cloud.run.v2.Condition.getDefaultInstance()); + return getConditionsFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Condition.getDefaultInstance()); + public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** + * + * *
      * Output only. The Condition of this Revision, containing its readiness status, and
      * detailed error information in case it did not reach a serving state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( - conditions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } - private long observedGeneration_ ; + private long observedGeneration_; /** + * + * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5747,6 +6457,7 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -5754,6 +6465,8 @@ public long getObservedGeneration() { return observedGeneration_; } /** + * + * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5761,16 +6474,19 @@ public long getObservedGeneration() {
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The observedGeneration to set. * @return This builder for chaining. */ public Builder setObservedGeneration(long value) { - + observedGeneration_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The generation of this Revision currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5778,10 +6494,11 @@ public Builder setObservedGeneration(long value) {
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; @@ -5789,18 +6506,20 @@ public Builder clearObservedGeneration() { private java.lang.Object logUri_ = ""; /** + * + * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The logUri. */ public java.lang.String getLogUri() { java.lang.Object ref = logUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logUri_ = s; return s; @@ -5809,20 +6528,21 @@ public java.lang.String getLogUri() { } } /** + * + * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for logUri. */ - public com.google.protobuf.ByteString - getLogUriBytes() { + public com.google.protobuf.ByteString getLogUriBytes() { java.lang.Object ref = logUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logUri_ = b; return b; } else { @@ -5830,54 +6550,61 @@ public java.lang.String getLogUri() { } } /** + * + * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The logUri to set. * @return This builder for chaining. */ - public Builder setLogUri( - java.lang.String value) { + public Builder setLogUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLogUri() { - + logUri_ = getDefaultInstance().getLogUri(); onChanged(); return this; } /** + * + * *
      * Output only. The Google Console URI to obtain logs for the Revision.
      * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for logUri to set. * @return This builder for chaining. */ - public Builder setLogUriBytes( - com.google.protobuf.ByteString value) { + public Builder setLogUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logUri_ = value; onChanged(); return this; @@ -5885,19 +6612,21 @@ public Builder setLogUriBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -5906,21 +6635,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -5928,64 +6658,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -5995,12 +6732,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Revision) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Revision) private static final com.google.cloud.run.v2.Revision DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Revision(); } @@ -6009,16 +6746,16 @@ public static com.google.cloud.run.v2.Revision getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Revision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Revision(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Revision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Revision(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6033,6 +6770,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Revision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index 946412f..1ebeb9a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -1,66 +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/run/v2/revision.proto package com.google.cloud.run.v2; -public interface RevisionOrBuilder extends +public interface RevisionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Revision) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ long getGeneration(); /** + * + * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -77,6 +108,8 @@ public interface RevisionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -91,15 +124,13 @@ public interface RevisionOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  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();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -114,9 +145,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -133,11 +165,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -152,11 +186,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
@@ -165,30 +199,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -197,139 +232,185 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .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-modified time.
    * 
* - * .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-modified time.
    * 
* - * .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(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -338,10 +419,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -350,49 +434,67 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Output only. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Output only. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.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(); /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return Whether the scaling field is set. */ boolean hasScaling(); /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** + * + * *
    * Scaling settings for this revision.
    * 
@@ -402,26 +504,34 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -432,34 +542,45 @@ java.lang.String getAnnotationsOrThrow(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -469,6 +590,8 @@ java.lang.String getAnnotationsOrThrow( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -476,10 +599,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -487,12 +613,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 16; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -500,9 +628,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -512,6 +641,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -521,6 +652,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -528,9 +661,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -538,19 +672,21 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -559,6 +695,8 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -567,44 +705,54 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ int getVolumesCount(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -612,10 +760,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -623,12 +774,14 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -636,60 +789,80 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); /** + * + * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -697,49 +870,60 @@ com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The logUri. */ java.lang.String getLogUri(); /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for logUri. */ - com.google.protobuf.ByteString - getLogUriBytes(); + com.google.protobuf.ByteString getLogUriBytes(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java new file mode 100644 index 0000000..9e62e90 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,271 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public final class RevisionProto { + private RevisionProto() {} + + 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_run_v2_GetRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_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/run/v2/revision.proto\022\023go" + + "ogle.cloud.run.v2\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\035google/api/la" + + "unch_stage.proto\032\031google/api/resource.pr" + + "oto\032\030google/api/routing.proto\032#google/cl" + + "oud/run/v2/condition.proto\032!google/cloud" + + "/run/v2/k8s.min.proto\032)google/cloud/run/" + + "v2/vendor_settings.proto\032#google/longrun" + + "ning/operations.proto\032\036google/protobuf/d" + + "uration.proto\032\037google/protobuf/timestamp" + + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + + "(\0132).google.cloud.run.v2.Revision.Labels" + + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\t \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + + ".run.v2.VpcAccess\022(\n max_instance_reques" + + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\027\n\017service_accou" + + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + + "google.cloud.run.v2.Volume\022H\n\025execution_" + + "environment\030\024 \001(\0162).google.cloud.run.v2." + + "ExecutionEnvironment\022>\n\016encryption_key\030\025" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + + "is.com/Revision\022Oprojects/{project}/loca" + + "tions/{location}/services/{service}/revi" + + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + + "tRevision\022\'.google.cloud.run.v2.GetRevis" + + "ionRequest\032\035.google.cloud.run.v2.Revisio" + + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + + "e\022$projects/*/locations/{location=*}/**\332" + + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + + "run.v2.ListRevisionsRequest\032*.google.clo" + + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + + "8/v2/{parent=projects/*/locations/*/serv" + + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + + "cts/*/locations/{location=*}/**\332A\006parent" + + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + + "2.DeleteRevisionRequest\032\035.google.longrun" + + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + + "cts/*/locations/*/services/*/revisions/*" + + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + + "ion\032F\312A\022run.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformBb\n\027c" + + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + + "6google.golang.org/genproto/googleapis/c" + + "loud/run/v2;runb\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.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, + new java.lang.String[] { + "Revisions", "NextPageToken", + }); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Revision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "LaunchStage", + "Service", + "Scaling", + "VpcAccess", + "MaxInstanceRequestConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "ExecutionEnvironment", + "EncryptionKey", + "Reconciling", + "Conditions", + "ObservedGeneration", + "LogUri", + "Etag", + }); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + 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.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java index 262416e..654fc94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.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/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** + * + * *
  * Settings for revision-level scaling settings.
  * 
* * Protobuf type {@code google.cloud.run.v2.RevisionScaling} */ -public final class RevisionScaling extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RevisionScaling extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RevisionScaling) RevisionScalingOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevisionScaling.newBuilder() to construct. private RevisionScaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevisionScaling() { - } + + private RevisionScaling() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RevisionScaling(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RevisionScaling( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,23 +68,23 @@ private RevisionScaling( case 0: done = true; break; - case 8: { - - minInstanceCount_ = input.readInt32(); - break; - } - case 16: { - - maxInstanceCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + minInstanceCount_ = input.readInt32(); + break; + } + case 16: + { + maxInstanceCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,34 +92,39 @@ private RevisionScaling( } 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.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RevisionScaling.class, com.google.cloud.run.v2.RevisionScaling.Builder.class); + com.google.cloud.run.v2.RevisionScaling.class, + com.google.cloud.run.v2.RevisionScaling.Builder.class); } public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 1; private int minInstanceCount_; /** + * + * *
    * Minimum number of serving instances that this resource should have.
    * 
* * int32 min_instance_count = 1; + * * @return The minInstanceCount. */ @java.lang.Override @@ -114,11 +135,14 @@ public int getMinInstanceCount() { public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 2; private int maxInstanceCount_; /** + * + * *
    * Maximum number of serving instances that this resource should have.
    * 
* * int32 max_instance_count = 2; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -127,6 +151,7 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +163,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 (minInstanceCount_ != 0) { output.writeInt32(1, minInstanceCount_); } @@ -156,12 +180,10 @@ public int getSerializedSize() { size = 0; if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstanceCount_); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstanceCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -171,17 +193,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.run.v2.RevisionScaling)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionScaling other = (com.google.cloud.run.v2.RevisionScaling) obj; - if (getMinInstanceCount() - != other.getMinInstanceCount()) return false; - if (getMaxInstanceCount() - != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() != other.getMinInstanceCount()) return false; + if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,118 +222,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.RevisionScaling parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.RevisionScaling parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.RevisionScaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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.run.v2.RevisionScaling 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; } /** + * + * *
    * Settings for revision-level scaling settings.
    * 
* * Protobuf type {@code google.cloud.run.v2.RevisionScaling} */ - 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.run.v2.RevisionScaling) com.google.cloud.run.v2.RevisionScalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RevisionScaling.class, com.google.cloud.run.v2.RevisionScaling.Builder.class); + com.google.cloud.run.v2.RevisionScaling.class, + com.google.cloud.run.v2.RevisionScaling.Builder.class); } // Construct using com.google.cloud.run.v2.RevisionScaling.newBuilder() @@ -321,16 +350,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(); @@ -342,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.VendorSettingsProto + .internal_static_google_cloud_run_v2_RevisionScaling_descriptor; } @java.lang.Override @@ -363,7 +391,8 @@ public com.google.cloud.run.v2.RevisionScaling build() { @java.lang.Override public com.google.cloud.run.v2.RevisionScaling buildPartial() { - com.google.cloud.run.v2.RevisionScaling result = new com.google.cloud.run.v2.RevisionScaling(this); + com.google.cloud.run.v2.RevisionScaling result = + new com.google.cloud.run.v2.RevisionScaling(this); result.minInstanceCount_ = minInstanceCount_; result.maxInstanceCount_ = maxInstanceCount_; onBuilt(); @@ -374,38 +403,39 @@ public com.google.cloud.run.v2.RevisionScaling 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.run.v2.RevisionScaling) { - return mergeFrom((com.google.cloud.run.v2.RevisionScaling)other); + return mergeFrom((com.google.cloud.run.v2.RevisionScaling) other); } else { super.mergeFrom(other); return this; @@ -449,13 +479,16 @@ public Builder mergeFrom( return this; } - private int minInstanceCount_ ; + private int minInstanceCount_; /** + * + * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; + * * @return The minInstanceCount. */ @java.lang.Override @@ -463,42 +496,51 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** + * + * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; + * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of serving instances that this resource should have.
      * 
* * int32 min_instance_count = 1; + * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; } - private int maxInstanceCount_ ; + private int maxInstanceCount_; /** + * + * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -506,37 +548,43 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** + * + * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; + * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of serving instances that this resource should have.
      * 
* * int32 max_instance_count = 2; + * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 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); } @@ -546,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RevisionScaling) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RevisionScaling) private static final com.google.cloud.run.v2.RevisionScaling DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.RevisionScaling(); } @@ -560,16 +608,16 @@ public static com.google.cloud.run.v2.RevisionScaling getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevisionScaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevisionScaling(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevisionScaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevisionScaling(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionScaling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java index caca17c..90a7a20 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java @@ -1,28 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface RevisionScalingOrBuilder extends +public interface RevisionScalingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionScaling) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Minimum number of serving instances that this resource should have.
    * 
* * int32 min_instance_count = 1; + * * @return The minInstanceCount. */ int getMinInstanceCount(); /** + * + * *
    * Maximum number of serving instances that this resource should have.
    * 
* * int32 max_instance_count = 2; + * * @return The maxInstanceCount. */ int getMaxInstanceCount(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index d9d5936..7f9d624 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.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/run/v2/revision_template.proto package com.google.cloud.run.v2; /** + * + * *
  * RevisionTemplate describes the data a revision should have when created from
  * a template.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.RevisionTemplate}
  */
-public final class RevisionTemplate extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RevisionTemplate extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RevisionTemplate)
     RevisionTemplateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RevisionTemplate.newBuilder() to construct.
   private RevisionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RevisionTemplate() {
     revision_ = "";
     serviceAccount_ = "";
@@ -31,16 +49,15 @@ private RevisionTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RevisionTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RevisionTemplate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,125 +77,140 @@ private RevisionTemplate(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            revision_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              revision_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              annotations_ = com.google.protobuf.MapField.newMapField(
-                  AnnotationsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              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
-            annotations__ = input.readMessage(
-                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            annotations_.getMutableMap().put(
-                annotations__.getKey(), annotations__.getValue());
-            break;
-          }
-          case 34: {
-            com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
-            if (scaling_ != null) {
-              subBuilder = scaling_.toBuilder();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                annotations_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AnnotationsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry annotations__ =
+                  input.readMessage(
+                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
+              break;
             }
-            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scaling_);
-              scaling_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.run.v2.RevisionScaling.Builder subBuilder = null;
+              if (scaling_ != null) {
+                subBuilder = scaling_.toBuilder();
+              }
+              scaling_ =
+                  input.readMessage(
+                      com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scaling_);
+                scaling_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 50: {
-            com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
-            if (vpcAccess_ != null) {
-              subBuilder = vpcAccess_.toBuilder();
+          case 50:
+            {
+              com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
+              if (vpcAccess_ != null) {
+                subBuilder = vpcAccess_.toBuilder();
+              }
+              vpcAccess_ =
+                  input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vpcAccess_);
+                vpcAccess_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            vpcAccess_ = input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vpcAccess_);
-              vpcAccess_ = subBuilder.buildPartial();
+          case 66:
+            {
+              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 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
+            }
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                containers_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              containers_.add(
+                  input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                volumes_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              volumes_.add(
+                  input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
+              break;
             }
+          case 104:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              executionEnvironment_ = rawValue;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccount_ = s;
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              containers_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              encryptionKey_ = s;
+              break;
             }
-            containers_.add(
-                input.readMessage(com.google.cloud.run.v2.Container.parser(), extensionRegistry));
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              volumes_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 120:
+            {
+              maxInstanceRequestConcurrency_ = input.readInt32();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 104: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            encryptionKey_ = s;
-            break;
-          }
-          case 120: {
-
-            maxInstanceRequestConcurrency_ = input.readInt32();
-            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) {
@@ -186,8 +218,7 @@ private RevisionTemplate(
     } 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_ & 0x00000004) != 0)) {
         containers_ = java.util.Collections.unmodifiableList(containers_);
@@ -199,42 +230,47 @@ private RevisionTemplate(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.RevisionTemplateProto
+        .internal_static_google_cloud_run_v2_RevisionTemplate_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 2:
         return internalGetLabels();
       case 3:
         return internalGetAnnotations();
       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.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
+    return com.google.cloud.run.v2.RevisionTemplateProto
+        .internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.RevisionTemplate.class, com.google.cloud.run.v2.RevisionTemplate.Builder.class);
+            com.google.cloud.run.v2.RevisionTemplate.class,
+            com.google.cloud.run.v2.RevisionTemplate.Builder.class);
   }
 
   public static final int REVISION_FIELD_NUMBER = 1;
   private volatile java.lang.Object revision_;
   /**
+   *
+   *
    * 
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ @java.lang.Override @@ -243,30 +279,30 @@ 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; } } /** + * + * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -275,24 +311,23 @@ public java.lang.String getRevision() { } public static final int LABELS_FIELD_NUMBER = 2; + 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.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_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.run.v2.RevisionTemplateProto + .internal_static_google_cloud_run_v2_RevisionTemplate_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_; } @@ -301,28 +336,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - @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(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -330,11 +367,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -342,16 +380,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @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; } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -359,12 +397,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @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(); } @@ -372,24 +409,24 @@ public java.lang.String getLabelsOrThrow( } public static final int ANNOTATIONS_FIELD_NUMBER = 3; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.run.v2.RevisionTemplateProto + .internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } @@ -398,28 +435,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -427,11 +466,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -439,16 +479,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -456,12 +497,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -471,11 +511,14 @@ public java.lang.String getAnnotationsOrThrow( public static final int SCALING_FIELD_NUMBER = 4; private com.google.cloud.run.v2.RevisionScaling scaling_; /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return Whether the scaling field is set. */ @java.lang.Override @@ -483,18 +526,25 @@ public boolean hasScaling() { return scaling_ != null; } /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return The scaling. */ @java.lang.Override public com.google.cloud.run.v2.RevisionScaling getScaling() { - return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } /** + * + * *
    * Scaling settings for this Revision.
    * 
@@ -509,12 +559,15 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { public static final int VPC_ACCESS_FIELD_NUMBER = 6; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -522,12 +575,15 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return The vpcAccess. */ @java.lang.Override @@ -535,6 +591,8 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -550,11 +608,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
+   *
+   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -562,11 +623,14 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ @java.lang.Override @@ -574,6 +638,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -588,6 +654,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -596,6 +664,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -604,14 +673,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -620,16 +690,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -640,6 +709,8 @@ public java.lang.String getServiceAccount() { public static final int CONTAINERS_FIELD_NUMBER = 10; private java.util.List containers_; /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -652,6 +723,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -660,11 +733,13 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getContainersOrBuilderList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -677,6 +752,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -689,6 +766,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
     return containers_.get(index);
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -697,14 +776,15 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index) {
+  public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
     return containers_.get(index);
   }
 
   public static final int VOLUMES_FIELD_NUMBER = 11;
   private java.util.List volumes_;
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -716,6 +796,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -723,11 +805,13 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -739,6 +823,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -750,6 +836,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -757,41 +845,51 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 13; private int executionEnvironment_; /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ - @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override + public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 14; private volatile java.lang.Object encryptionKey_; /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -799,6 +897,7 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -807,14 +906,15 @@ public java.lang.String getEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; } } /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -822,16 +922,15 @@ public java.lang.String getEncryptionKey() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getEncryptionKeyBytes() { + public com.google.protobuf.ByteString getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -842,11 +941,14 @@ public java.lang.String getEncryptionKey() { public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 15; private int maxInstanceRequestConcurrency_; /** + * + * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -855,6 +957,7 @@ public int getMaxInstanceRequestConcurrency() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -866,23 +969,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(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, revision_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 3); if (scaling_ != null) { output.writeMessage(4, getScaling()); } @@ -901,7 +995,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(11, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -922,59 +1018,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revision_); } - 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(2, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, annotations__); + 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(2, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotations__); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getScaling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, executionEnvironment_); + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, encryptionKey_); } if (maxInstanceRequestConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, maxInstanceRequestConcurrency_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 15, maxInstanceRequestConcurrency_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -984,45 +1077,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.run.v2.RevisionTemplate)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionTemplate other = (com.google.cloud.run.v2.RevisionTemplate) obj; - if (!getRevision() - .equals(other.getRevision())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!getRevision().equals(other.getRevision())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling() - .equals(other.getScaling())) return false; + if (!getScaling().equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess() - .equals(other.getVpcAccess())) return false; + if (!getVpcAccess().equals(other.getVpcAccess())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getContainersList() - .equals(other.getContainersList())) return false; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; + } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getContainersList().equals(other.getContainersList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - if (getMaxInstanceRequestConcurrency() - != other.getMaxInstanceRequestConcurrency()) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1077,97 +1160,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.RevisionTemplate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.RevisionTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.RevisionTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate 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; } /** + * + * *
    * RevisionTemplate describes the data a revision should have when created from
    * a template.
@@ -1175,47 +1265,47 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.RevisionTemplate}
    */
-  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.run.v2.RevisionTemplate)
       com.google.cloud.run.v2.RevisionTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.RevisionTemplateProto
+          .internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetLabels();
         case 3:
           return internalGetAnnotations();
         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 2:
           return internalGetMutableLabels();
         case 3:
           return internalGetMutableAnnotations();
         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.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
+      return com.google.cloud.run.v2.RevisionTemplateProto
+          .internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.RevisionTemplate.class, com.google.cloud.run.v2.RevisionTemplate.Builder.class);
+              com.google.cloud.run.v2.RevisionTemplate.class,
+              com.google.cloud.run.v2.RevisionTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.RevisionTemplate.newBuilder()
@@ -1223,18 +1313,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) {
         getContainersFieldBuilder();
         getVolumesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1284,9 +1374,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.RevisionTemplateProto.internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.RevisionTemplateProto
+          .internal_static_google_cloud_run_v2_RevisionTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -1305,7 +1395,8 @@ public com.google.cloud.run.v2.RevisionTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.RevisionTemplate buildPartial() {
-      com.google.cloud.run.v2.RevisionTemplate result = new com.google.cloud.run.v2.RevisionTemplate(this);
+      com.google.cloud.run.v2.RevisionTemplate result =
+          new com.google.cloud.run.v2.RevisionTemplate(this);
       int from_bitField0_ = bitField0_;
       result.revision_ = revision_;
       result.labels_ = internalGetLabels();
@@ -1357,38 +1448,39 @@ public com.google.cloud.run.v2.RevisionTemplate 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.run.v2.RevisionTemplate) {
-        return mergeFrom((com.google.cloud.run.v2.RevisionTemplate)other);
+        return mergeFrom((com.google.cloud.run.v2.RevisionTemplate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1401,10 +1493,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
         revision_ = other.revision_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       if (other.hasScaling()) {
         mergeScaling(other.getScaling());
       }
@@ -1436,9 +1526,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
             containersBuilder_ = null;
             containers_ = other.containers_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            containersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getContainersFieldBuilder() : null;
+            containersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getContainersFieldBuilder()
+                    : null;
           } else {
             containersBuilder_.addAllMessages(other.containers_);
           }
@@ -1462,9 +1553,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) {
             volumesBuilder_ = null;
             volumes_ = other.volumes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            volumesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVolumesFieldBuilder() : null;
+            volumesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVolumesFieldBuilder()
+                    : null;
           } else {
             volumesBuilder_.addAllMessages(other.volumes_);
           }
@@ -1508,23 +1600,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object revision_ = "";
     /**
+     *
+     *
      * 
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @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; @@ -1533,21 +1628,22 @@ public java.lang.String getRevision() { } } /** + * + * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -1555,78 +1651,84 @@ public java.lang.String getRevision() { } } /** + * + * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @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; } /** + * + * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
      * The unique name for the revision. If this field is omitted, it will be
      * automatically generated based on the Service name.
      * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @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; } - 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(); @@ -1638,28 +1740,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - @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(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1667,11 +1771,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1679,16 +1784,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @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; } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1696,12 +1802,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @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(); } @@ -1709,83 +1814,82 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - - 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(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - 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; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - - 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> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; + internalGetMutableAnnotations() { + onChanged(); + ; if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1797,28 +1901,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1826,11 +1932,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1838,16 +1945,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1855,12 +1963,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1868,97 +1975,107 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(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"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder> + scalingBuilder_; /** + * + * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** + * + * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } else { return scalingBuilder_.getMessage(); } } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -1979,14 +2096,15 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; */ - public Builder setScaling( - com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { + public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); onChanged(); @@ -1997,6 +2115,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2007,7 +2127,9 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { if (scaling_ != null) { scaling_ = - com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.RevisionScaling.newBuilder(scaling_) + .mergeFrom(value) + .buildPartial(); } else { scaling_ = value; } @@ -2019,6 +2141,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2037,6 +2161,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2044,11 +2170,13 @@ public Builder clearScaling() { * .google.cloud.run.v2.RevisionScaling scaling = 4; */ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { - + onChanged(); return getScalingFieldBuilder().getBuilder(); } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2059,11 +2187,14 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { if (scalingBuilder_ != null) { return scalingBuilder_.getMessageOrBuilder(); } else { - return scaling_ == null ? - com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2071,14 +2202,17 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * .google.cloud.run.v2.RevisionScaling scaling = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder> getScalingFieldBuilder() { if (scalingBuilder_ == null) { - scalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder>( - getScaling(), - getParentForChildren(), - isClean()); + scalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder>( + getScaling(), getParentForChildren(), isClean()); scaling_ = null; } return scalingBuilder_; @@ -2086,36 +2220,49 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { private com.google.cloud.run.v2.VpcAccess vpcAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> vpcAccessBuilder_; + com.google.cloud.run.v2.VpcAccess, + com.google.cloud.run.v2.VpcAccess.Builder, + com.google.cloud.run.v2.VpcAccessOrBuilder> + vpcAccessBuilder_; /** + * + * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** + * + * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return The vpcAccess. */ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { if (vpcAccessBuilder_ == null) { - return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; + return vpcAccess_ == null + ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() + : vpcAccess_; } else { return vpcAccessBuilder_.getMessage(); } } /** + * + * *
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2137,6 +2284,8 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2144,8 +2293,7 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
      *
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
-    public Builder setVpcAccess(
-        com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
+    public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
       if (vpcAccessBuilder_ == null) {
         vpcAccess_ = builderForValue.build();
         onChanged();
@@ -2156,6 +2304,8 @@ public Builder setVpcAccess(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2167,7 +2317,9 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       if (vpcAccessBuilder_ == null) {
         if (vpcAccess_ != null) {
           vpcAccess_ =
-            com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_).mergeFrom(value).buildPartial();
+              com.google.cloud.run.v2.VpcAccess.newBuilder(vpcAccess_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           vpcAccess_ = value;
         }
@@ -2179,6 +2331,8 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2198,6 +2352,8 @@ public Builder clearVpcAccess() {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2206,11 +2362,13 @@ public Builder clearVpcAccess() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
-      
+
       onChanged();
       return getVpcAccessFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2222,11 +2380,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
       if (vpcAccessBuilder_ != null) {
         return vpcAccessBuilder_.getMessageOrBuilder();
       } else {
-        return vpcAccess_ == null ?
-            com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
+        return vpcAccess_ == null
+            ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
+            : vpcAccess_;
       }
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Revision. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2235,14 +2396,17 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
+            com.google.cloud.run.v2.VpcAccess,
+            com.google.cloud.run.v2.VpcAccess.Builder,
+            com.google.cloud.run.v2.VpcAccessOrBuilder>
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(),
-                getParentForChildren(),
-                isClean());
+        vpcAccessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.VpcAccess,
+                com.google.cloud.run.v2.VpcAccess.Builder,
+                com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(), getParentForChildren(), isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
@@ -2250,24 +2414,33 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
 
     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_;
     /**
+     *
+     *
      * 
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2278,6 +2451,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2298,14 +2473,15 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; */ - 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(); @@ -2316,6 +2492,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2326,7 +2504,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; } @@ -2338,6 +2516,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2356,6 +2536,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2363,11 +2545,13 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 8; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2378,11 +2562,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_; } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2390,14 +2575,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 8; */ 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_; @@ -2405,6 +2593,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2413,13 +2603,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 9; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2428,6 +2618,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2436,15 +2628,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2452,6 +2643,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2460,20 +2653,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2482,15 +2677,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 9; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the revision of
      * the service. The service account represents the identity of the running
@@ -2499,34 +2697,40 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private java.util.List containers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> containersBuilder_; + com.google.cloud.run.v2.Container, + com.google.cloud.run.v2.Container.Builder, + com.google.cloud.run.v2.ContainerOrBuilder> + containersBuilder_; /** + * + * *
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2542,6 +2746,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2557,6 +2763,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2572,6 +2780,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2579,8 +2789,7 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder setContainers(
-        int index, com.google.cloud.run.v2.Container value) {
+    public Builder setContainers(int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2594,6 +2803,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2613,6 +2824,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2634,6 +2847,8 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2641,8 +2856,7 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder addContainers(
-        int index, com.google.cloud.run.v2.Container value) {
+    public Builder addContainers(int index, com.google.cloud.run.v2.Container value) {
       if (containersBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2656,6 +2870,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2663,8 +2879,7 @@ public Builder addContainers(
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public Builder addContainers(
-        com.google.cloud.run.v2.Container.Builder builderForValue) {
+    public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderForValue) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
         containers_.add(builderForValue.build());
@@ -2675,6 +2890,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2694,6 +2911,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2705,8 +2924,7 @@ public Builder addAllContainers(
         java.lang.Iterable values) {
       if (containersBuilder_ == null) {
         ensureContainersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, containers_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_);
         onChanged();
       } else {
         containersBuilder_.addAllMessages(values);
@@ -2714,6 +2932,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2732,6 +2952,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2750,6 +2972,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2757,11 +2981,12 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
-        int index) {
+    public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index) {
       return getContainersFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2769,14 +2994,16 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-        int index) {
+    public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
       if (containersBuilder_ == null) {
-        return containers_.get(index);  } else {
+        return containers_.get(index);
+      } else {
         return containersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2784,8 +3011,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public java.util.List 
-         getContainersOrBuilderList() {
+    public java.util.List
+        getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -2793,6 +3020,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2801,10 +3030,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
     public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
-      return getContainersFieldBuilder().addBuilder(
-          com.google.cloud.run.v2.Container.getDefaultInstance());
+      return getContainersFieldBuilder()
+          .addBuilder(com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2812,12 +3043,13 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
-        int index) {
-      return getContainersFieldBuilder().addBuilder(
-          index, com.google.cloud.run.v2.Container.getDefaultInstance());
+    public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index) {
+      return getContainersFieldBuilder()
+          .addBuilder(index, com.google.cloud.run.v2.Container.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2825,38 +3057,46 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 10;
      */
-    public java.util.List 
-         getContainersBuilderList() {
+    public java.util.List getContainersBuilderList() {
       return getContainersFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder> 
+            com.google.cloud.run.v2.Container,
+            com.google.cloud.run.v2.Container.Builder,
+            com.google.cloud.run.v2.ContainerOrBuilder>
         getContainersFieldBuilder() {
       if (containersBuilder_ == null) {
-        containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.Container, com.google.cloud.run.v2.Container.Builder, com.google.cloud.run.v2.ContainerOrBuilder>(
-                containers_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        containersBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.run.v2.Container,
+                com.google.cloud.run.v2.Container.Builder,
+                com.google.cloud.run.v2.ContainerOrBuilder>(
+                containers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         containers_ = null;
       }
       return containersBuilder_;
     }
 
     private java.util.List volumes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureVolumesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         volumes_ = new java.util.ArrayList(volumes_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> volumesBuilder_;
+            com.google.cloud.run.v2.Volume,
+            com.google.cloud.run.v2.Volume.Builder,
+            com.google.cloud.run.v2.VolumeOrBuilder>
+        volumesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of Volumes to make available to containers.
      * 
@@ -2871,6 +3111,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2885,6 +3127,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2899,14 +3143,15 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder setVolumes( - int index, com.google.cloud.run.v2.Volume value) { + public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2920,14 +3165,15 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder setVolumes( - int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); @@ -2938,6 +3184,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2958,14 +3206,15 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes( - int index, com.google.cloud.run.v2.Volume value) { + public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2979,14 +3228,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes( - com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); @@ -2997,14 +3247,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public Builder addVolumes( - int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); @@ -3015,6 +3266,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3025,8 +3278,7 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -3034,6 +3286,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3051,6 +3305,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3068,39 +3324,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder( - int index) { + public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); } else { + return volumes_.get(index); + } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -3108,6 +3369,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3115,42 +3378,47 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 11; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -3158,51 +3426,65 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( private int executionEnvironment_ = 0; /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -3210,21 +3492,24 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm if (value == null) { throw new NullPointerException(); } - + executionEnvironment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; @@ -3232,6 +3517,8 @@ public Builder clearExecutionEnvironment() { private java.lang.Object encryptionKey_ = ""; /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3239,13 +3526,13 @@ public Builder clearExecutionEnvironment() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ public java.lang.String getEncryptionKey() { java.lang.Object ref = encryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionKey_ = s; return s; @@ -3254,6 +3541,8 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3261,15 +3550,14 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - public com.google.protobuf.ByteString - getEncryptionKeyBytes() { + public com.google.protobuf.ByteString getEncryptionKeyBytes() { java.lang.Object ref = encryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encryptionKey_ = b; return b; } else { @@ -3277,6 +3565,8 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3284,20 +3574,22 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @param value The encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKey( - java.lang.String value) { + public Builder setEncryptionKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encryptionKey_ = value; onChanged(); return this; } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3305,15 +3597,18 @@ public Builder setEncryptionKey(
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearEncryptionKey() { - + encryptionKey_ = getDefaultInstance().getEncryptionKey(); onChanged(); return this; } /** + * + * *
      * A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
@@ -3321,28 +3616,31 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private int maxInstanceRequestConcurrency_ ; + private int maxInstanceRequestConcurrency_; /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -3350,37 +3648,43 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 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); } @@ -3390,12 +3694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RevisionTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RevisionTemplate) private static final com.google.cloud.run.v2.RevisionTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.RevisionTemplate(); } @@ -3404,16 +3708,16 @@ public static com.google.cloud.run.v2.RevisionTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevisionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevisionTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevisionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevisionTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3428,6 +3732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index ababa87..15f01a2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.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/run/v2/revision_template.proto package com.google.cloud.run.v2; -public interface RevisionTemplateOrBuilder extends +public interface RevisionTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -38,30 +61,31 @@ public interface RevisionTemplateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - 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(); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -70,22 +94,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); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -94,30 +120,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -126,40 +153,48 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return Whether the scaling field is set. */ boolean hasScaling(); /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** + * + * *
    * Scaling settings for this Revision.
    * 
@@ -169,26 +204,34 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -199,24 +242,32 @@ java.lang.String getAnnotationsOrThrow(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
+   *
+   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -226,6 +277,8 @@ java.lang.String getAnnotationsOrThrow( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -234,10 +287,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -246,12 +302,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -259,9 +317,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -271,6 +330,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -280,6 +341,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -287,9 +350,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -297,19 +361,21 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -318,6 +384,8 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -326,44 +394,54 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ int getVolumesCount(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -371,10 +449,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -382,17 +463,20 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java new file mode 100644 index 0000000..b25c319 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision_template.proto + +package com.google.cloud.run.v2; + +public final class RevisionTemplateProto { + private RevisionTemplateProto() {} + + 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_run_v2_RevisionTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_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/run/v2/revision_template." + + "proto\022\023google.cloud.run.v2\032\031google/api/r" + + "esource.proto\032!google/cloud/run/v2/k8s.m" + + "in.proto\032)google/cloud/run/v2/vendor_set" + + "tings.proto\032\036google/protobuf/duration.pr" + + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + + " \003(\01326.google.cloud.run.v2.RevisionTempl" + + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + + "google.cloud.run.v2.RevisionScaling\0222\n\nv" + + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + + ".run.v2.Volume\022H\n\025execution_environment\030" + + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022(\n max_" + + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + + "B\025RevisionTemplateProtoP\001Z6google.golang" + + ".org/genproto/googleapis/cloud/run/v2;ru" + + "nb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, + new java.lang.String[] { + "Revision", + "Labels", + "Annotations", + "Scaling", + "VpcAccess", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "ExecutionEnvironment", + "EncryptionKey", + "MaxInstanceRequestConcurrency", + }); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java index 8a44f53..b15cf4d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * SecretEnvVarSource represents a source for the value of an EnvVar.
  * 
* * Protobuf type {@code google.cloud.run.v2.SecretKeySelector} */ -public final class SecretKeySelector extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SecretKeySelector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SecretKeySelector) SecretKeySelectorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretKeySelector.newBuilder() to construct. private SecretKeySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretKeySelector() { secret_ = ""; version_ = ""; @@ -26,16 +44,15 @@ private SecretKeySelector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretKeySelector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretKeySelector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private SecretKeySelector( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - secret_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + secret_ = s; + break; + } + case 18: + { + 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) { @@ -80,29 +99,33 @@ private SecretKeySelector( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.SecretKeySelector.class, com.google.cloud.run.v2.SecretKeySelector.Builder.class); + com.google.cloud.run.v2.SecretKeySelector.class, + com.google.cloud.run.v2.SecretKeySelector.Builder.class); } public static final int SECRET_FIELD_NUMBER = 1; private volatile java.lang.Object secret_; /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -110,7 +133,10 @@ private SecretKeySelector(
    * in a different project.
    * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The secret. */ @java.lang.Override @@ -119,14 +145,15 @@ 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; } } /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -134,17 +161,18 @@ public java.lang.String getSecret() {
    * in a different project.
    * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -155,12 +183,15 @@ public java.lang.String getSecret() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @return The version. */ @java.lang.Override @@ -169,30 +200,30 @@ 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; } } /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -201,6 +232,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +244,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(secret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secret_); } @@ -243,17 +274,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.run.v2.SecretKeySelector)) { return super.equals(obj); } - com.google.cloud.run.v2.SecretKeySelector other = (com.google.cloud.run.v2.SecretKeySelector) obj; + com.google.cloud.run.v2.SecretKeySelector other = + (com.google.cloud.run.v2.SecretKeySelector) obj; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getVersion() - .equals(other.getVersion())) 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; } @@ -274,118 +304,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.SecretKeySelector parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.SecretKeySelector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.SecretKeySelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector 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; } /** + * + * *
    * SecretEnvVarSource represents a source for the value of an EnvVar.
    * 
* * Protobuf type {@code google.cloud.run.v2.SecretKeySelector} */ - 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.run.v2.SecretKeySelector) com.google.cloud.run.v2.SecretKeySelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.SecretKeySelector.class, com.google.cloud.run.v2.SecretKeySelector.Builder.class); + com.google.cloud.run.v2.SecretKeySelector.class, + com.google.cloud.run.v2.SecretKeySelector.Builder.class); } // Construct using com.google.cloud.run.v2.SecretKeySelector.newBuilder() @@ -393,16 +432,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(); @@ -414,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SecretKeySelector_descriptor; } @java.lang.Override @@ -435,7 +473,8 @@ public com.google.cloud.run.v2.SecretKeySelector build() { @java.lang.Override public com.google.cloud.run.v2.SecretKeySelector buildPartial() { - com.google.cloud.run.v2.SecretKeySelector result = new com.google.cloud.run.v2.SecretKeySelector(this); + com.google.cloud.run.v2.SecretKeySelector result = + new com.google.cloud.run.v2.SecretKeySelector(this); result.secret_ = secret_; result.version_ = version_; onBuilt(); @@ -446,38 +485,39 @@ public com.google.cloud.run.v2.SecretKeySelector 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.run.v2.SecretKeySelector) { - return mergeFrom((com.google.cloud.run.v2.SecretKeySelector)other); + return mergeFrom((com.google.cloud.run.v2.SecretKeySelector) other); } else { super.mergeFrom(other); return this; @@ -525,6 +565,8 @@ public Builder mergeFrom( private java.lang.Object secret_ = ""; /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -532,14 +574,16 @@ public Builder mergeFrom(
      * in a different project.
      * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -548,6 +592,8 @@ public java.lang.String getSecret() { } } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -555,16 +601,17 @@ public java.lang.String getSecret() {
      * in a different project.
      * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -572,6 +619,8 @@ public java.lang.String getSecret() { } } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -579,21 +628,25 @@ public java.lang.String getSecret() {
      * in a different project.
      * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -601,16 +654,21 @@ public Builder setSecret(
      * in a different project.
      * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret_name} if the secret is in the same project.
@@ -618,17 +676,19 @@ public Builder clearSecret() {
      * in a different project.
      * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -636,19 +696,21 @@ public Builder setSecretBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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; @@ -657,21 +719,22 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -679,64 +742,71 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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; } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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); } @@ -746,12 +816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SecretKeySelector) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SecretKeySelector) private static final com.google.cloud.run.v2.SecretKeySelector DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.SecretKeySelector(); } @@ -760,16 +830,16 @@ public static com.google.cloud.run.v2.SecretKeySelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretKeySelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretKeySelector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretKeySelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretKeySelector(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +854,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java index a226a5b..fa3ba53 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface SecretKeySelectorOrBuilder extends +public interface SecretKeySelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SecretKeySelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -15,11 +33,16 @@ public interface SecretKeySelectorOrBuilder extends
    * in a different project.
    * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret_name} if the secret is in the same project.
@@ -27,31 +50,38 @@ public interface SecretKeySelectorOrBuilder extends
    * in a different project.
    * 
* - * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2 [(.google.api.resource_reference) = { ... } + * * @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-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java index b508e50..08e3642 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * The secret's value will be presented as the content of a file whose
  * name is defined in the item path. If no items are defined, the name of
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.SecretVolumeSource}
  */
-public final class SecretVolumeSource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SecretVolumeSource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SecretVolumeSource)
     SecretVolumeSourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SecretVolumeSource.newBuilder() to construct.
   private SecretVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SecretVolumeSource() {
     secret_ = "";
     items_ = java.util.Collections.emptyList();
@@ -28,16 +46,15 @@ private SecretVolumeSource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretVolumeSource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SecretVolumeSource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,33 +74,36 @@ private SecretVolumeSource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            secret_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              secret_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry));
-            break;
-          }
-          case 24: {
-
-            defaultMode_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry));
+              break;
+            }
+          case 24:
+            {
+              defaultMode_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,8 +111,7 @@ private SecretVolumeSource(
     } 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)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -101,22 +120,27 @@ private SecretVolumeSource(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.SecretVolumeSource.class, com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
+            com.google.cloud.run.v2.SecretVolumeSource.class,
+            com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
   }
 
   public static final int SECRET_FIELD_NUMBER = 1;
   private volatile java.lang.Object secret_;
   /**
+   *
+   *
    * 
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -125,6 +149,7 @@ private SecretVolumeSource(
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secret. */ @java.lang.Override @@ -133,14 +158,15 @@ 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; } } /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -149,16 +175,15 @@ public java.lang.String getSecret() {
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -169,6 +194,8 @@ public java.lang.String getSecret() { public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** + * + * *
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -184,6 +211,8 @@ public java.util.List getItemsList() {
     return items_;
   }
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -195,11 +224,13 @@ public java.util.List getItemsList() {
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getItemsOrBuilderList() {
     return items_;
   }
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -215,6 +246,8 @@ public int getItemsCount() {
     return items_.size();
   }
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -230,6 +263,8 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
     return items_.get(index);
   }
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -241,14 +276,15 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
-      int index) {
+  public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index) {
     return items_.get(index);
   }
 
   public static final int DEFAULT_MODE_FIELD_NUMBER = 3;
   private int defaultMode_;
   /**
+   *
+   *
    * 
    * Integer representation of mode bits to use on created files by default.
    * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -268,6 +304,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
    * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -276,6 +313,7 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,8 +325,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(secret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secret_); } @@ -311,12 +348,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secret_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } if (defaultMode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, defaultMode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, defaultMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -326,19 +361,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.run.v2.SecretVolumeSource)) { return super.equals(obj); } - com.google.cloud.run.v2.SecretVolumeSource other = (com.google.cloud.run.v2.SecretVolumeSource) obj; + com.google.cloud.run.v2.SecretVolumeSource other = + (com.google.cloud.run.v2.SecretVolumeSource) obj; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (getDefaultMode() - != other.getDefaultMode()) return false; + if (!getSecret().equals(other.getSecret())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; + if (getDefaultMode() != other.getDefaultMode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,97 +396,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.SecretVolumeSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.SecretVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.SecretVolumeSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource 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 secret's value will be presented as the content of a file whose
    * name is defined in the item path. If no items are defined, the name of
@@ -462,21 +502,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.SecretVolumeSource}
    */
-  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.run.v2.SecretVolumeSource)
       com.google.cloud.run.v2.SecretVolumeSourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.SecretVolumeSource.class, com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
+              com.google.cloud.run.v2.SecretVolumeSource.class,
+              com.google.cloud.run.v2.SecretVolumeSource.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.SecretVolumeSource.newBuilder()
@@ -484,17 +526,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) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -512,9 +554,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor;
     }
 
     @java.lang.Override
@@ -533,7 +575,8 @@ public com.google.cloud.run.v2.SecretVolumeSource build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.SecretVolumeSource buildPartial() {
-      com.google.cloud.run.v2.SecretVolumeSource result = new com.google.cloud.run.v2.SecretVolumeSource(this);
+      com.google.cloud.run.v2.SecretVolumeSource result =
+          new com.google.cloud.run.v2.SecretVolumeSource(this);
       int from_bitField0_ = bitField0_;
       result.secret_ = secret_;
       if (itemsBuilder_ == null) {
@@ -554,38 +597,39 @@ public com.google.cloud.run.v2.SecretVolumeSource 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.run.v2.SecretVolumeSource) {
-        return mergeFrom((com.google.cloud.run.v2.SecretVolumeSource)other);
+        return mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -616,9 +660,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.SecretVolumeSource other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -655,10 +700,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object secret_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -667,13 +715,13 @@ public Builder mergeFrom(
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -682,6 +730,8 @@ public java.lang.String getSecret() { } } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -690,15 +740,14 @@ public java.lang.String getSecret() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -706,6 +755,8 @@ public java.lang.String getSecret() { } } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -714,20 +765,22 @@ public java.lang.String getSecret() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -736,15 +789,18 @@ public Builder setSecret(
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
      * Required. The name of the secret in Cloud Secret Manager.
      * Format: {secret} if the secret is in the same project.
@@ -753,34 +809,40 @@ public Builder clearSecret() {
      * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder> itemsBuilder_; + com.google.cloud.run.v2.VersionToPath, + com.google.cloud.run.v2.VersionToPath.Builder, + com.google.cloud.run.v2.VersionToPathOrBuilder> + itemsBuilder_; /** + * + * *
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -799,6 +861,8 @@ public java.util.List getItemsList() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -817,6 +881,8 @@ public int getItemsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -835,6 +901,8 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -845,8 +913,7 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder setItems(
-        int index, com.google.cloud.run.v2.VersionToPath value) {
+    public Builder setItems(int index, com.google.cloud.run.v2.VersionToPath value) {
       if (itemsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -860,6 +927,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -882,6 +951,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -906,6 +977,8 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -916,8 +989,7 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath value) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder addItems(
-        int index, com.google.cloud.run.v2.VersionToPath value) {
+    public Builder addItems(int index, com.google.cloud.run.v2.VersionToPath value) {
       if (itemsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -931,6 +1003,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -941,8 +1015,7 @@ public Builder addItems(
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public Builder addItems(
-        com.google.cloud.run.v2.VersionToPath.Builder builderForValue) {
+    public Builder addItems(com.google.cloud.run.v2.VersionToPath.Builder builderForValue) {
       if (itemsBuilder_ == null) {
         ensureItemsIsMutable();
         items_.add(builderForValue.build());
@@ -953,6 +1026,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -975,6 +1050,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -989,8 +1066,7 @@ public Builder addAllItems(
         java.lang.Iterable values) {
       if (itemsBuilder_ == null) {
         ensureItemsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, items_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
         onChanged();
       } else {
         itemsBuilder_.addAllMessages(values);
@@ -998,6 +1074,8 @@ public Builder addAllItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1019,6 +1097,8 @@ public Builder clearItems() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1040,6 +1120,8 @@ public Builder removeItems(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1050,11 +1132,12 @@ public Builder removeItems(int index) {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(
-        int index) {
+    public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(int index) {
       return getItemsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1065,14 +1148,16 @@ public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
-        int index) {
+    public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index) {
       if (itemsBuilder_ == null) {
-        return items_.get(index);  } else {
+        return items_.get(index);
+      } else {
         return itemsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1083,8 +1168,8 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public java.util.List 
-         getItemsOrBuilderList() {
+    public java.util.List
+        getItemsOrBuilderList() {
       if (itemsBuilder_ != null) {
         return itemsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1092,6 +1177,8 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1103,10 +1190,12 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
     public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder() {
-      return getItemsFieldBuilder().addBuilder(
-          com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
+      return getItemsFieldBuilder()
+          .addBuilder(com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1117,12 +1206,13 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder() {
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
-        int index) {
-      return getItemsFieldBuilder().addBuilder(
-          index, com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
+    public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(int index) {
+      return getItemsFieldBuilder()
+          .addBuilder(index, com.google.cloud.run.v2.VersionToPath.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1133,27 +1223,31 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
      *
      * repeated .google.cloud.run.v2.VersionToPath items = 2;
      */
-    public java.util.List 
-         getItemsBuilderList() {
+    public java.util.List getItemsBuilderList() {
       return getItemsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder> 
+            com.google.cloud.run.v2.VersionToPath,
+            com.google.cloud.run.v2.VersionToPath.Builder,
+            com.google.cloud.run.v2.VersionToPathOrBuilder>
         getItemsFieldBuilder() {
       if (itemsBuilder_ == null) {
-        itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.VersionToPath, com.google.cloud.run.v2.VersionToPath.Builder, com.google.cloud.run.v2.VersionToPathOrBuilder>(
-                items_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        itemsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.run.v2.VersionToPath,
+                com.google.cloud.run.v2.VersionToPath.Builder,
+                com.google.cloud.run.v2.VersionToPathOrBuilder>(
+                items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         items_ = null;
       }
       return itemsBuilder_;
     }
 
-    private int defaultMode_ ;
+    private int defaultMode_;
     /**
+     *
+     *
      * 
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1173,6 +1267,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
      * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -1180,6 +1275,8 @@ public int getDefaultMode() { return defaultMode_; } /** + * + * *
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1199,16 +1296,19 @@ public int getDefaultMode() {
      * 
* * int32 default_mode = 3; + * * @param value The defaultMode to set. * @return This builder for chaining. */ public Builder setDefaultMode(int value) { - + defaultMode_ = value; onChanged(); return this; } /** + * + * *
      * Integer representation of mode bits to use on created files by default.
      * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -1228,17 +1328,18 @@ public Builder setDefaultMode(int value) {
      * 
* * int32 default_mode = 3; + * * @return This builder for chaining. */ public Builder clearDefaultMode() { - + defaultMode_ = 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); } @@ -1248,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SecretVolumeSource) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SecretVolumeSource) private static final com.google.cloud.run.v2.SecretVolumeSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.SecretVolumeSource(); } @@ -1262,16 +1363,16 @@ public static com.google.cloud.run.v2.SecretVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVolumeSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVolumeSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVolumeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVolumeSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,6 +1387,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java similarity index 83% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java index 1b443eb..511e5a6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface SecretVolumeSourceOrBuilder extends +public interface SecretVolumeSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SecretVolumeSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -16,10 +34,13 @@ public interface SecretVolumeSourceOrBuilder extends
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
    * Required. The name of the secret in Cloud Secret Manager.
    * Format: {secret} if the secret is in the same project.
@@ -28,12 +49,14 @@ public interface SecretVolumeSourceOrBuilder extends
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -44,9 +67,10 @@ public interface SecretVolumeSourceOrBuilder extends
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  java.util.List 
-      getItemsList();
+  java.util.List getItemsList();
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -59,6 +83,8 @@ public interface SecretVolumeSourceOrBuilder extends
    */
   com.google.cloud.run.v2.VersionToPath getItems(int index);
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -71,6 +97,8 @@ public interface SecretVolumeSourceOrBuilder extends
    */
   int getItemsCount();
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -81,9 +109,10 @@ public interface SecretVolumeSourceOrBuilder extends
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  java.util.List 
-      getItemsOrBuilderList();
+  java.util.List getItemsOrBuilderList();
   /**
+   *
+   *
    * 
    * If unspecified, the volume will expose a file whose name is the
    * secret, relative to VolumeMount.mount_path.
@@ -94,10 +123,11 @@ public interface SecretVolumeSourceOrBuilder extends
    *
    * repeated .google.cloud.run.v2.VersionToPath items = 2;
    */
-  com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
-      int index);
+  com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Integer representation of mode bits to use on created files by default.
    * Must be a value between 0000 and 0777 (octal), defaulting to 0644.
@@ -117,6 +147,7 @@ com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
    * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ int getDefaultMode(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index 1ca8d15..23e71c3 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Service acts as a top-level container that manages a set of
  * configurations and revision templates which implement a network service.
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Service}
  */
-public final class Service extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Service extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Service)
     ServiceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Service.newBuilder() to construct.
   private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Service() {
     name_ = "";
     description_ = "";
@@ -44,16 +62,15 @@ private Service() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Service();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Service(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,250 +90,287 @@ private Service(
           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();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uid_ = s;
-            break;
-          }
-          case 32: {
+              description_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            generation_ = input.readInt64();
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              uid_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              annotations_ = com.google.protobuf.MapField.newMapField(
-                  AnnotationsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+          case 32:
+            {
+              generation_ = input.readInt64();
+              break;
             }
-            com.google.protobuf.MapEntry
-            annotations__ = input.readMessage(
-                AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            annotations_.getMutableMap().put(
-                annotations__.getKey(), annotations__.getValue());
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 42:
+            {
+              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;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                annotations_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AnnotationsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry annotations__ =
+                  input.readMessage(
+                      AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 58:
+            {
+              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;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 66:
+            {
+              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 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (deleteTime_ != null) {
-              subBuilder = deleteTime_.toBuilder();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (deleteTime_ != null) {
+                subBuilder = deleteTime_.toBuilder();
+              }
+              deleteTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deleteTime_);
+                deleteTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deleteTime_);
-              deleteTime_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (expireTime_ != null) {
+                subBuilder = expireTime_.toBuilder();
+              }
+              expireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(expireTime_);
+                expireTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (expireTime_ != null) {
-              subBuilder = expireTime_.toBuilder();
+              creator_ = s;
+              break;
             }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            creator_ = s;
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            lastModifier_ = s;
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+              lastModifier_ = s;
+              break;
+            }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            client_ = s;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              client_ = s;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            clientVersion_ = s;
-            break;
-          }
-          case 120: {
-            int rawValue = input.readEnum();
+              clientVersion_ = s;
+              break;
+            }
+          case 120:
+            {
+              int rawValue = input.readEnum();
 
-            ingress_ = rawValue;
-            break;
-          }
-          case 128: {
-            int rawValue = input.readEnum();
+              ingress_ = rawValue;
+              break;
+            }
+          case 128:
+            {
+              int rawValue = input.readEnum();
 
-            launchStage_ = rawValue;
-            break;
-          }
-          case 138: {
-            com.google.cloud.run.v2.BinaryAuthorization.Builder subBuilder = null;
-            if (binaryAuthorization_ != null) {
-              subBuilder = binaryAuthorization_.toBuilder();
+              launchStage_ = rawValue;
+              break;
             }
-            binaryAuthorization_ = input.readMessage(com.google.cloud.run.v2.BinaryAuthorization.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(binaryAuthorization_);
-              binaryAuthorization_ = subBuilder.buildPartial();
+          case 138:
+            {
+              com.google.cloud.run.v2.BinaryAuthorization.Builder subBuilder = null;
+              if (binaryAuthorization_ != null) {
+                subBuilder = binaryAuthorization_.toBuilder();
+              }
+              binaryAuthorization_ =
+                  input.readMessage(
+                      com.google.cloud.run.v2.BinaryAuthorization.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(binaryAuthorization_);
+                binaryAuthorization_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 146: {
-            com.google.cloud.run.v2.RevisionTemplate.Builder subBuilder = null;
-            if (template_ != null) {
-              subBuilder = template_.toBuilder();
+          case 146:
+            {
+              com.google.cloud.run.v2.RevisionTemplate.Builder subBuilder = null;
+              if (template_ != null) {
+                subBuilder = template_.toBuilder();
+              }
+              template_ =
+                  input.readMessage(
+                      com.google.cloud.run.v2.RevisionTemplate.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(template_);
+                template_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            template_ = input.readMessage(com.google.cloud.run.v2.RevisionTemplate.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(template_);
-              template_ = subBuilder.buildPartial();
+          case 154:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                traffic_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              traffic_.add(
+                  input.readMessage(
+                      com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry));
+              break;
             }
-
-            break;
-          }
-          case 154: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              traffic_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 240:
+            {
+              observedGeneration_ = input.readInt64();
+              break;
             }
-            traffic_.add(
-                input.readMessage(com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry));
-            break;
-          }
-          case 240: {
-
-            observedGeneration_ = input.readInt64();
-            break;
-          }
-          case 250: {
-            com.google.cloud.run.v2.Condition.Builder subBuilder = null;
-            if (terminalCondition_ != null) {
-              subBuilder = terminalCondition_.toBuilder();
+          case 250:
+            {
+              com.google.cloud.run.v2.Condition.Builder subBuilder = null;
+              if (terminalCondition_ != null) {
+                subBuilder = terminalCondition_.toBuilder();
+              }
+              terminalCondition_ =
+                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(terminalCondition_);
+                terminalCondition_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            terminalCondition_ = input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(terminalCondition_);
-              terminalCondition_ = subBuilder.buildPartial();
+          case 258:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                conditions_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              conditions_.add(
+                  input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
+              break;
             }
+          case 266:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 258: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              conditions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+              latestReadyRevision_ = s;
+              break;
             }
-            conditions_.add(
-                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-            break;
-          }
-          case 266: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            latestReadyRevision_ = s;
-            break;
-          }
-          case 274: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 274:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            latestCreatedRevision_ = s;
-            break;
-          }
-          case 282: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              trafficStatuses_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+              latestCreatedRevision_ = s;
+              break;
             }
-            trafficStatuses_.add(
-                input.readMessage(com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry));
-            break;
-          }
-          case 290: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 784: {
+          case 282:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                trafficStatuses_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              trafficStatuses_.add(
+                  input.readMessage(
+                      com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry));
+              break;
+            }
+          case 290:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            reconciling_ = input.readBool();
-            break;
-          }
-          case 794: {
-            java.lang.String s = input.readStringRequireUtf8();
+              uri_ = s;
+              break;
+            }
+          case 784:
+            {
+              reconciling_ = input.readBool();
+              break;
+            }
+          case 794:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -324,8 +378,7 @@ private Service(
     } 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_ & 0x00000004) != 0)) {
         traffic_ = java.util.Collections.unmodifiableList(traffic_);
@@ -340,29 +393,30 @@ private Service(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.ServiceProto
+        .internal_static_google_cloud_run_v2_Service_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 5:
         return internalGetLabels();
       case 6:
         return internalGetAnnotations();
       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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_fieldAccessorTable
+    return com.google.cloud.run.v2.ServiceProto
+        .internal_static_google_cloud_run_v2_Service_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Service.class, com.google.cloud.run.v2.Service.Builder.class);
   }
@@ -370,6 +424,8 @@ protected com.google.protobuf.MapField internalGetMapField(
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -379,6 +435,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -387,14 +444,15 @@ 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 fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -404,16 +462,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -424,12 +481,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -438,30 +498,30 @@ 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 the Service. This field currently has a
    * 512-character limit.
    * 
* * 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 { @@ -472,12 +532,15 @@ public java.lang.String getDescription() { public static final int UID_FIELD_NUMBER = 3; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -486,30 +549,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -520,6 +583,8 @@ public java.lang.String getUid() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_; /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -528,6 +593,7 @@ public java.lang.String getUid() {
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -536,24 +602,23 @@ public long getGeneration() { } public static final int LABELS_FIELD_NUMBER = 5; + 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_LabelsEntry_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.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_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() { + + 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_; } @@ -562,6 +627,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -577,22 +644,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -609,11 +676,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -630,16 +698,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5;
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -656,12 +724,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 5;
    */
   @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();
     }
@@ -669,24 +736,24 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 6;
+
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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.run.v2.ServiceProto
+                .internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> annotations_;
+
+  private com.google.protobuf.MapField annotations_;
+
   private com.google.protobuf.MapField
-  internalGetAnnotations() {
+      internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
@@ -695,6 +762,8 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -706,22 +775,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
-
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -734,11 +803,12 @@ public java.util.Map getAnnotations() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-
   public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -751,16 +821,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-
   public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -773,12 +844,11 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -788,11 +858,15 @@ public java.lang.String getAnnotationsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -800,11 +874,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -812,11 +890,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -826,11 +907,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -838,11 +923,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -850,11 +939,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -864,11 +956,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -876,11 +972,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -888,11 +988,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -902,12 +1005,16 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -915,12 +1022,16 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -928,12 +1039,15 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -943,11 +1057,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 11; private volatile java.lang.Object creator_; /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ @java.lang.Override @@ -956,29 +1073,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -989,11 +1106,14 @@ public java.lang.String getCreator() { public static final int LAST_MODIFIER_FIELD_NUMBER = 12; private volatile java.lang.Object lastModifier_; /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifier. */ @java.lang.Override @@ -1002,29 +1122,29 @@ public java.lang.String getLastModifier() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastModifier_ = s; return s; } } /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastModifier. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastModifierBytes() { + public com.google.protobuf.ByteString getLastModifierBytes() { java.lang.Object ref = lastModifier_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastModifier_ = b; return b; } else { @@ -1035,11 +1155,14 @@ public java.lang.String getLastModifier() { public static final int CLIENT_FIELD_NUMBER = 13; private volatile java.lang.Object client_; /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The client. */ @java.lang.Override @@ -1048,29 +1171,29 @@ public java.lang.String getClient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); client_ = s; return s; } } /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The bytes for client. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientBytes() { + public com.google.protobuf.ByteString getClientBytes() { java.lang.Object ref = client_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); client_ = b; return b; } else { @@ -1081,11 +1204,14 @@ public java.lang.String getClient() { public static final int CLIENT_VERSION_FIELD_NUMBER = 14; private volatile java.lang.Object clientVersion_; /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The clientVersion. */ @java.lang.Override @@ -1094,29 +1220,29 @@ public java.lang.String getClientVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientVersion_ = s; return s; } } /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The bytes for clientVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientVersionBytes() { + public com.google.protobuf.ByteString getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientVersion_ = b; return b; } else { @@ -1127,6 +1253,8 @@ public java.lang.String getClientVersion() { public static final int INGRESS_FIELD_NUMBER = 15; private int ingress_; /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -1134,12 +1262,16 @@ public java.lang.String getClientVersion() {
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The enum numeric value on the wire for ingress. */ - @java.lang.Override public int getIngressValue() { + @java.lang.Override + public int getIngressValue() { return ingress_; } /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -1147,17 +1279,22 @@ public java.lang.String getClientVersion() {
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The ingress. */ - @java.lang.Override public com.google.cloud.run.v2.IngressTraffic getIngress() { + @java.lang.Override + public com.google.cloud.run.v2.IngressTraffic getIngress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.IngressTraffic result = com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); + com.google.cloud.run.v2.IngressTraffic result = + com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); return result == null ? com.google.cloud.run.v2.IngressTraffic.UNRECOGNIZED : result; } public static final int LAUNCH_STAGE_FIELD_NUMBER = 16; private int launchStage_; /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -1166,12 +1303,16 @@ public java.lang.String getClientVersion() {
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -1180,9 +1321,11 @@ public java.lang.String getClientVersion() {
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ - @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override + public com.google.api.LaunchStage getLaunchStage() { @SuppressWarnings("deprecation") com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; @@ -1191,11 +1334,14 @@ public java.lang.String getClientVersion() { public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 17; private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return Whether the binaryAuthorization field is set. */ @java.lang.Override @@ -1203,18 +1349,25 @@ public boolean hasBinaryAuthorization() { return binaryAuthorization_ != null; } /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return The binaryAuthorization. */ @java.lang.Override public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { - return binaryAuthorization_ == null ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + return binaryAuthorization_ == null + ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; } /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
@@ -1229,11 +1382,16 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati public static final int TEMPLATE_FIELD_NUMBER = 18; private com.google.cloud.run.v2.RevisionTemplate template_; /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -1241,23 +1399,34 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.run.v2.RevisionTemplate getTemplate() { - return template_ == null ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() { @@ -1267,6 +1436,8 @@ public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() public static final int TRAFFIC_FIELD_NUMBER = 19; private java.util.List traffic_; /** + * + * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1280,6 +1451,8 @@ public java.util.List getTrafficList() {
     return traffic_;
   }
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1289,11 +1462,13 @@ public java.util.List getTrafficList() {
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTrafficOrBuilderList() {
     return traffic_;
   }
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1307,6 +1482,8 @@ public int getTrafficCount() {
     return traffic_.size();
   }
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1320,6 +1497,8 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
     return traffic_.get(index);
   }
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -1329,14 +1508,15 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
   @java.lang.Override
-  public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
-      int index) {
+  public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) {
     return traffic_.get(index);
   }
 
   public static final int OBSERVED_GENERATION_FIELD_NUMBER = 30;
   private long observedGeneration_;
   /**
+   *
+   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -1346,6 +1526,7 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -1356,6 +1537,8 @@ public long getObservedGeneration() { public static final int TERMINAL_CONDITION_FIELD_NUMBER = 31; private com.google.cloud.run.v2.Condition terminalCondition_; /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1363,7 +1546,10 @@ public long getObservedGeneration() {
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ @java.lang.Override @@ -1371,6 +1557,8 @@ public boolean hasTerminalCondition() { return terminalCondition_ != null; } /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1378,14 +1566,21 @@ public boolean hasTerminalCondition() {
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalCondition. */ @java.lang.Override public com.google.cloud.run.v2.Condition getTerminalCondition() { - return terminalCondition_ == null ? com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; + return terminalCondition_ == null + ? com.google.cloud.run.v2.Condition.getDefaultInstance() + : terminalCondition_; } /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -1393,7 +1588,9 @@ public com.google.cloud.run.v2.Condition getTerminalCondition() {
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { @@ -1403,6 +1600,8 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder( public static final int CONDITIONS_FIELD_NUMBER = 32; private java.util.List conditions_; /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1410,13 +1609,17 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1424,14 +1627,18 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1439,13 +1646,17 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1453,13 +1664,17 @@ public int getConditionsCount() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.Condition getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -1467,24 +1682,30 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int LATEST_READY_REVISION_FIELD_NUMBER = 33; private volatile java.lang.Object latestReadyRevision_; /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestReadyRevision. */ @java.lang.Override @@ -1493,31 +1714,33 @@ public java.lang.String getLatestReadyRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestReadyRevision_ = s; return s; } } /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestReadyRevision. */ @java.lang.Override - public com.google.protobuf.ByteString - getLatestReadyRevisionBytes() { + public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { java.lang.Object ref = latestReadyRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); latestReadyRevision_ = b; return b; } else { @@ -1528,12 +1751,17 @@ public java.lang.String getLatestReadyRevision() { public static final int LATEST_CREATED_REVISION_FIELD_NUMBER = 34; private volatile java.lang.Object latestCreatedRevision_; /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestCreatedRevision. */ @java.lang.Override @@ -1542,30 +1770,32 @@ public java.lang.String getLatestCreatedRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestCreatedRevision_ = s; return s; } } /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestCreatedRevision. */ @java.lang.Override - public com.google.protobuf.ByteString - getLatestCreatedRevisionBytes() { + public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { java.lang.Object ref = latestCreatedRevision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); latestCreatedRevision_ = b; return b; } else { @@ -1576,66 +1806,86 @@ public java.lang.String getLatestCreatedRevision() { public static final int TRAFFIC_STATUSES_FIELD_NUMBER = 35; private java.util.List trafficStatuses_; /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getTrafficStatusesList() { return trafficStatuses_; } /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTrafficStatusesOrBuilderList() { return trafficStatuses_; } /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getTrafficStatusesCount() { return trafficStatuses_.size(); } /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) { return trafficStatuses_.get(index); } /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( @@ -1646,11 +1896,14 @@ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOr public static final int URI_FIELD_NUMBER = 36; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -1659,29 +1912,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. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.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 { @@ -1692,6 +1945,8 @@ public java.lang.String getUri() { public static final int RECONCILING_FIELD_NUMBER = 98; private boolean reconciling_; /** + * + * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -1715,6 +1970,7 @@ public java.lang.String getUri() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1725,12 +1981,15 @@ public boolean getReconciling() { public static final int ETAG_FIELD_NUMBER = 99; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1739,30 +1998,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1771,6 +2030,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1782,8 +2042,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_); } @@ -1796,18 +2055,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (generation_ != 0L) { output.writeInt64(4, generation_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 6); if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } @@ -1832,7 +2083,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, clientVersion_); } - if (ingress_ != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { + if (ingress_ + != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { output.writeEnum(15, ingress_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { @@ -1893,44 +2145,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, generation_); - } - 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(5, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, annotations__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, generation_); + } + 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(5, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, creator_); @@ -1944,37 +2191,31 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, clientVersion_); } - if (ingress_ != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, ingress_); + if (ingress_ + != com.google.cloud.run.v2.IngressTraffic.INGRESS_TRAFFIC_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, ingress_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, launchStage_); } if (binaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getBinaryAuthorization()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, getBinaryAuthorization()); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTemplate()); } for (int i = 0; i < traffic_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, traffic_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, traffic_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(30, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, observedGeneration_); } if (terminalCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getTerminalCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getTerminalCondition()); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, conditions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestReadyRevision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, latestReadyRevision_); @@ -1983,15 +2224,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, latestCreatedRevision_); } for (int i = 0; i < trafficStatuses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, trafficStatuses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, trafficStatuses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, uri_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(98, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(98, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -2004,88 +2243,62 @@ 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.run.v2.Service)) { return super.equals(obj); } com.google.cloud.run.v2.Service other = (com.google.cloud.run.v2.Service) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getGeneration() - != other.getGeneration()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getGeneration() != other.getGeneration()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!getCreator() - .equals(other.getCreator())) return false; - if (!getLastModifier() - .equals(other.getLastModifier())) return false; - if (!getClient() - .equals(other.getClient())) return false; - if (!getClientVersion() - .equals(other.getClientVersion())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getCreator().equals(other.getCreator())) return false; + if (!getLastModifier().equals(other.getLastModifier())) return false; + if (!getClient().equals(other.getClient())) return false; + if (!getClientVersion().equals(other.getClientVersion())) return false; if (ingress_ != other.ingress_) return false; if (launchStage_ != other.launchStage_) return false; if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; if (hasBinaryAuthorization()) { - if (!getBinaryAuthorization() - .equals(other.getBinaryAuthorization())) return false; + if (!getBinaryAuthorization().equals(other.getBinaryAuthorization())) return false; } if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; + if (!getTemplate().equals(other.getTemplate())) return false; } - if (!getTrafficList() - .equals(other.getTrafficList())) return false; - if (getObservedGeneration() - != other.getObservedGeneration()) return false; + if (!getTrafficList().equals(other.getTrafficList())) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; if (hasTerminalCondition() != other.hasTerminalCondition()) return false; if (hasTerminalCondition()) { - if (!getTerminalCondition() - .equals(other.getTerminalCondition())) return false; - } - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (!getLatestReadyRevision() - .equals(other.getLatestReadyRevision())) return false; - if (!getLatestCreatedRevision() - .equals(other.getLatestCreatedRevision())) return false; - if (!getTrafficStatusesList() - .equals(other.getTrafficStatusesList())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getTerminalCondition().equals(other.getTerminalCondition())) return false; + } + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (!getLatestReadyRevision().equals(other.getLatestReadyRevision())) return false; + if (!getLatestCreatedRevision().equals(other.getLatestCreatedRevision())) return false; + if (!getTrafficStatusesList().equals(other.getTrafficStatusesList())) return false; + if (!getUri().equals(other.getUri())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2104,8 +2317,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().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()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -2155,8 +2367,7 @@ public int hashCode() { hash = (53 * hash) + getTrafficList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); if (hasTerminalCondition()) { hash = (37 * hash) + TERMINAL_CONDITION_FIELD_NUMBER; hash = (53 * hash) + getTerminalCondition().hashCode(); @@ -2176,8 +2387,7 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2185,97 +2395,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Service parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Service parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Service 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.run.v2.Service parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Service parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Service 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.run.v2.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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.run.v2.Service 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; } /** + * + * *
    * Service acts as a top-level container that manages a set of
    * configurations and revision templates which implement a network service.
@@ -2286,45 +2502,44 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Service}
    */
-  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.run.v2.Service)
       com.google.cloud.run.v2.ServiceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.ServiceProto
+          .internal_static_google_cloud_run_v2_Service_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         case 6:
           return internalGetAnnotations();
         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 5:
           return internalGetMutableLabels();
         case 6:
           return internalGetMutableAnnotations();
         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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_fieldAccessorTable
+      return com.google.cloud.run.v2.ServiceProto
+          .internal_static_google_cloud_run_v2_Service_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.run.v2.Service.class, com.google.cloud.run.v2.Service.Builder.class);
     }
@@ -2334,19 +2549,19 @@ 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) {
         getTrafficFieldBuilder();
         getConditionsFieldBuilder();
         getTrafficStatusesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2448,9 +2663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_Service_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.ServiceProto
+          .internal_static_google_cloud_run_v2_Service_descriptor;
     }
 
     @java.lang.Override
@@ -2561,38 +2776,39 @@ public com.google.cloud.run.v2.Service 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.run.v2.Service) {
-        return mergeFrom((com.google.cloud.run.v2.Service)other);
+        return mergeFrom((com.google.cloud.run.v2.Service) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2616,10 +2832,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
       if (other.getGeneration() != 0L) {
         setGeneration(other.getGeneration());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -2678,9 +2892,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             trafficBuilder_ = null;
             traffic_ = other.traffic_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            trafficBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTrafficFieldBuilder() : null;
+            trafficBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTrafficFieldBuilder()
+                    : null;
           } else {
             trafficBuilder_.addAllMessages(other.traffic_);
           }
@@ -2710,9 +2925,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2744,9 +2960,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) {
             trafficStatusesBuilder_ = null;
             trafficStatuses_ = other.trafficStatuses_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            trafficStatusesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTrafficStatusesFieldBuilder() : null;
+            trafficStatusesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTrafficStatusesFieldBuilder()
+                    : null;
           } else {
             trafficStatusesBuilder_.addAllMessages(other.trafficStatuses_);
           }
@@ -2791,10 +3008,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -2804,13 +3024,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -2819,6 +3039,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -2828,15 +3050,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -2844,6 +3065,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -2853,20 +3076,22 @@ public java.lang.String getName() {
      * 
* * 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 fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -2876,15 +3101,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The fully qualified name of this Service. In CreateServiceRequest, this
      * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -2894,16 +3122,16 @@ public Builder clearName() {
      * 
* * 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; @@ -2911,19 +3139,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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; @@ -2932,21 +3162,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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 { @@ -2954,57 +3185,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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 the Service. This field currently has a
      * 512-character limit.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User-provided description of the Service. This field currently has a
      * 512-character limit.
      * 
* * 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; @@ -3012,19 +3250,21 @@ public Builder setDescriptionBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3033,21 +3273,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3055,64 +3296,73 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3121,6 +3371,7 @@ public Builder setUidBytes(
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -3128,6 +3379,8 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3136,16 +3389,19 @@ public long getGeneration() {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3154,31 +3410,31 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 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(); @@ -3190,6 +3446,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3205,22 +3463,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3237,11 +3495,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3258,16 +3517,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5;
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3284,12 +3544,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5;
      */
     @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();
       }
@@ -3297,11 +3556,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3317,23 +3577,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3349,19 +3607,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5;
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3377,30 +3636,29 @@ public Builder putLabels(
      *
      * map<string, string> labels = 5;
      */
-
-    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> annotations_;
+    private com.google.protobuf.MapField annotations_;
+
     private com.google.protobuf.MapField
-    internalGetAnnotations() {
+        internalGetAnnotations() {
       if (annotations_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             AnnotationsDefaultEntryHolder.defaultEntry);
       }
       return annotations_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableAnnotations() {
-      onChanged();;
+        internalGetMutableAnnotations() {
+      onChanged();
+      ;
       if (annotations_ == null) {
-        annotations_ = com.google.protobuf.MapField.newMapField(
-            AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ =
+            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -3412,6 +3670,8 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3423,22 +3683,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
-
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3451,11 +3711,12 @@ public java.util.Map getAnnotations() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-
     public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3468,16 +3729,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-
     public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3490,12 +3752,11 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3503,11 +3764,12 @@ public java.lang.String getAnnotationsOrThrow(
     }
 
     public Builder clearAnnotations() {
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3519,23 +3781,21 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3547,19 +3807,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putAnnotations(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");
+      }
 
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3571,49 +3832,65 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 6;
      */
-
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       return this;
     }
 
     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_;
     /**
+     *
+     *
      * 
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3629,14 +3906,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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(); @@ -3647,17 +3927,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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; } @@ -3669,11 +3953,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3687,48 +3975,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -3736,39 +4040,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3784,14 +4107,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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(); @@ -3802,17 +4128,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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; } @@ -3824,11 +4154,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3842,48 +4176,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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-modified time.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.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_; @@ -3891,39 +4241,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3939,14 +4308,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3957,17 +4329,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3979,11 +4355,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3997,48 +4377,64 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4046,42 +4442,61 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4097,15 +4512,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -4116,18 +4534,22 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -4139,12 +4561,16 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -4158,51 +4584,67 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. For a deleted resource, the time after which it will be
      * permamently deleted.
      * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 10 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4210,18 +4652,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object creator_ = ""; /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -4230,20 +4674,21 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -4251,54 +4696,61 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator( - java.lang.String value) { + public Builder setCreator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -4306,18 +4758,20 @@ public Builder setCreatorBytes( private java.lang.Object lastModifier_ = ""; /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifier. */ public java.lang.String getLastModifier() { java.lang.Object ref = lastModifier_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastModifier_ = s; return s; @@ -4326,20 +4780,21 @@ public java.lang.String getLastModifier() { } } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastModifier. */ - public com.google.protobuf.ByteString - getLastModifierBytes() { + public com.google.protobuf.ByteString getLastModifierBytes() { java.lang.Object ref = lastModifier_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastModifier_ = b; return b; } else { @@ -4347,54 +4802,61 @@ public java.lang.String getLastModifier() { } } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastModifier to set. * @return This builder for chaining. */ - public Builder setLastModifier( - java.lang.String value) { + public Builder setLastModifier(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastModifier_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastModifier() { - + lastModifier_ = getDefaultInstance().getLastModifier(); onChanged(); return this; } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for lastModifier to set. * @return This builder for chaining. */ - public Builder setLastModifierBytes( - com.google.protobuf.ByteString value) { + public Builder setLastModifierBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastModifier_ = value; onChanged(); return this; @@ -4402,18 +4864,20 @@ public Builder setLastModifierBytes( private java.lang.Object client_ = ""; /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; + * * @return The client. */ public java.lang.String getClient() { java.lang.Object ref = client_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); client_ = s; return s; @@ -4422,20 +4886,21 @@ public java.lang.String getClient() { } } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; + * * @return The bytes for client. */ - public com.google.protobuf.ByteString - getClientBytes() { + public com.google.protobuf.ByteString getClientBytes() { java.lang.Object ref = client_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); client_ = b; return b; } else { @@ -4443,54 +4908,61 @@ public java.lang.String getClient() { } } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; + * * @param value The client to set. * @return This builder for chaining. */ - public Builder setClient( - java.lang.String value) { + public Builder setClient(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + client_ = value; onChanged(); return this; } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; + * * @return This builder for chaining. */ public Builder clearClient() { - + client_ = getDefaultInstance().getClient(); onChanged(); return this; } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 13; + * * @param value The bytes for client to set. * @return This builder for chaining. */ - public Builder setClientBytes( - com.google.protobuf.ByteString value) { + public Builder setClientBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + client_ = value; onChanged(); return this; @@ -4498,18 +4970,20 @@ public Builder setClientBytes( private java.lang.Object clientVersion_ = ""; /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; + * * @return The clientVersion. */ public java.lang.String getClientVersion() { java.lang.Object ref = clientVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientVersion_ = s; return s; @@ -4518,20 +4992,21 @@ public java.lang.String getClientVersion() { } } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; + * * @return The bytes for clientVersion. */ - public com.google.protobuf.ByteString - getClientVersionBytes() { + public com.google.protobuf.ByteString getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientVersion_ = b; return b; } else { @@ -4539,54 +5014,61 @@ public java.lang.String getClientVersion() { } } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; + * * @param value The clientVersion to set. * @return This builder for chaining. */ - public Builder setClientVersion( - java.lang.String value) { + public Builder setClientVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientVersion_ = value; onChanged(); return this; } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; + * * @return This builder for chaining. */ public Builder clearClientVersion() { - + clientVersion_ = getDefaultInstance().getClientVersion(); onChanged(); return this; } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 14; + * * @param value The bytes for clientVersion to set. * @return This builder for chaining. */ - public Builder setClientVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setClientVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientVersion_ = value; onChanged(); return this; @@ -4594,6 +5076,8 @@ public Builder setClientVersionBytes( private int ingress_ = 0; /** + * + * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -4601,12 +5085,16 @@ public Builder setClientVersionBytes(
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The enum numeric value on the wire for ingress. */ - @java.lang.Override public int getIngressValue() { + @java.lang.Override + public int getIngressValue() { return ingress_; } /** + * + * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -4614,16 +5102,19 @@ public Builder setClientVersionBytes(
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @param value The enum numeric value on the wire for ingress to set. * @return This builder for chaining. */ public Builder setIngressValue(int value) { - + ingress_ = value; onChanged(); return this; } /** + * + * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -4631,15 +5122,19 @@ public Builder setIngressValue(int value) {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The ingress. */ @java.lang.Override public com.google.cloud.run.v2.IngressTraffic getIngress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.IngressTraffic result = com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); + com.google.cloud.run.v2.IngressTraffic result = + com.google.cloud.run.v2.IngressTraffic.valueOf(ingress_); return result == null ? com.google.cloud.run.v2.IngressTraffic.UNRECOGNIZED : result; } /** + * + * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -4647,6 +5142,7 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @param value The ingress to set. * @return This builder for chaining. */ @@ -4654,12 +5150,14 @@ public Builder setIngress(com.google.cloud.run.v2.IngressTraffic value) { if (value == null) { throw new NullPointerException(); } - + ingress_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Provides the ingress settings for this Service. On output, returns the
      * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -4667,10 +5165,11 @@ public Builder setIngress(com.google.cloud.run.v2.IngressTraffic value) {
      * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return This builder for chaining. */ public Builder clearIngress() { - + ingress_ = 0; onChanged(); return this; @@ -4678,6 +5177,8 @@ public Builder clearIngress() { private int launchStage_ = 0; /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -4686,12 +5187,16 @@ public Builder clearIngress() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -4700,16 +5205,19 @@ public Builder clearIngress() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ public Builder setLaunchStageValue(int value) { - + launchStage_ = value; onChanged(); return this; } /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -4718,6 +5226,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ @java.lang.Override @@ -4727,6 +5236,8 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -4735,6 +5246,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4742,12 +5254,14 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { if (value == null) { throw new NullPointerException(); } - + launchStage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -4756,10 +5270,11 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -4767,34 +5282,47 @@ public Builder clearLaunchStage() { private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; + com.google.cloud.run.v2.BinaryAuthorization, + com.google.cloud.run.v2.BinaryAuthorization.Builder, + com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> + binaryAuthorizationBuilder_; /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return Whether the binaryAuthorization field is set. */ public boolean hasBinaryAuthorization() { return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return The binaryAuthorization. */ public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { if (binaryAuthorizationBuilder_ == null) { - return binaryAuthorization_ == null ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + return binaryAuthorization_ == null + ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; } else { return binaryAuthorizationBuilder_.getMessage(); } } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4815,6 +5343,8 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4833,6 +5363,8 @@ public Builder setBinaryAuthorization( return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4843,7 +5375,9 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat if (binaryAuthorizationBuilder_ == null) { if (binaryAuthorization_ != null) { binaryAuthorization_ = - com.google.cloud.run.v2.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.BinaryAuthorization.newBuilder(binaryAuthorization_) + .mergeFrom(value) + .buildPartial(); } else { binaryAuthorization_ = value; } @@ -4855,6 +5389,8 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4873,6 +5409,8 @@ public Builder clearBinaryAuthorization() { return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4880,11 +5418,13 @@ public Builder clearBinaryAuthorization() { * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; */ public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - + onChanged(); return getBinaryAuthorizationFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4895,11 +5435,14 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati if (binaryAuthorizationBuilder_ != null) { return binaryAuthorizationBuilder_.getMessageOrBuilder(); } else { - return binaryAuthorization_ == null ? - com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + return binaryAuthorization_ == null + ? com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; } } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4907,14 +5450,17 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> + com.google.cloud.run.v2.BinaryAuthorization, + com.google.cloud.run.v2.BinaryAuthorization.Builder, + com.google.cloud.run.v2.BinaryAuthorizationOrBuilder> getBinaryAuthorizationFieldBuilder() { if (binaryAuthorizationBuilder_ == null) { - binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.BinaryAuthorization, com.google.cloud.run.v2.BinaryAuthorization.Builder, com.google.cloud.run.v2.BinaryAuthorizationOrBuilder>( - getBinaryAuthorization(), - getParentForChildren(), - isClean()); + binaryAuthorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.BinaryAuthorization, + com.google.cloud.run.v2.BinaryAuthorization.Builder, + com.google.cloud.run.v2.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), getParentForChildren(), isClean()); binaryAuthorization_ = null; } return binaryAuthorizationBuilder_; @@ -4922,39 +5468,58 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati private com.google.cloud.run.v2.RevisionTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder> templateBuilder_; + com.google.cloud.run.v2.RevisionTemplate, + com.google.cloud.run.v2.RevisionTemplate.Builder, + com.google.cloud.run.v2.RevisionTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.run.v2.RevisionTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate value) { if (templateBuilder_ == null) { @@ -4970,14 +5535,17 @@ public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate value) { return this; } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTemplate( - com.google.cloud.run.v2.RevisionTemplate.Builder builderForValue) { + public Builder setTemplate(com.google.cloud.run.v2.RevisionTemplate.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); @@ -4988,17 +5556,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.run.v2.RevisionTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.run.v2.RevisionTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.RevisionTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -5010,11 +5584,15 @@ public Builder mergeTemplate(com.google.cloud.run.v2.RevisionTemplate value) { return this; } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -5028,66 +5606,88 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.RevisionTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.RevisionTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. The template used to create revisions for this Service.
      * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder> + com.google.cloud.run.v2.RevisionTemplate, + com.google.cloud.run.v2.RevisionTemplate.Builder, + com.google.cloud.run.v2.RevisionTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionTemplate, com.google.cloud.run.v2.RevisionTemplate.Builder, com.google.cloud.run.v2.RevisionTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.RevisionTemplate, + com.google.cloud.run.v2.RevisionTemplate.Builder, + com.google.cloud.run.v2.RevisionTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private java.util.List traffic_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTrafficIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { traffic_ = new java.util.ArrayList(traffic_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder> trafficBuilder_; + com.google.cloud.run.v2.TrafficTarget, + com.google.cloud.run.v2.TrafficTarget.Builder, + com.google.cloud.run.v2.TrafficTargetOrBuilder> + trafficBuilder_; /** + * + * *
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5104,6 +5704,8 @@ public java.util.List getTrafficList() {
       }
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5120,6 +5722,8 @@ public int getTrafficCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5136,6 +5740,8 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5144,8 +5750,7 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder setTraffic(
-        int index, com.google.cloud.run.v2.TrafficTarget value) {
+    public Builder setTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) {
       if (trafficBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5159,6 +5764,8 @@ public Builder setTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5179,6 +5786,8 @@ public Builder setTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5201,6 +5810,8 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5209,8 +5820,7 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder addTraffic(
-        int index, com.google.cloud.run.v2.TrafficTarget value) {
+    public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) {
       if (trafficBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5224,6 +5834,8 @@ public Builder addTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5232,8 +5844,7 @@ public Builder addTraffic(
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public Builder addTraffic(
-        com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) {
+    public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) {
       if (trafficBuilder_ == null) {
         ensureTrafficIsMutable();
         traffic_.add(builderForValue.build());
@@ -5244,6 +5855,8 @@ public Builder addTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5264,6 +5877,8 @@ public Builder addTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5276,8 +5891,7 @@ public Builder addAllTraffic(
         java.lang.Iterable values) {
       if (trafficBuilder_ == null) {
         ensureTrafficIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, traffic_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, traffic_);
         onChanged();
       } else {
         trafficBuilder_.addAllMessages(values);
@@ -5285,6 +5899,8 @@ public Builder addAllTraffic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5304,6 +5920,8 @@ public Builder clearTraffic() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5323,6 +5941,8 @@ public Builder removeTraffic(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5331,11 +5951,12 @@ public Builder removeTraffic(int index) {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(
-        int index) {
+    public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(int index) {
       return getTrafficFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5344,14 +5965,16 @@ public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
-        int index) {
+    public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) {
       if (trafficBuilder_ == null) {
-        return traffic_.get(index);  } else {
+        return traffic_.get(index);
+      } else {
         return trafficBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5360,8 +5983,8 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public java.util.List 
-         getTrafficOrBuilderList() {
+    public java.util.List
+        getTrafficOrBuilderList() {
       if (trafficBuilder_ != null) {
         return trafficBuilder_.getMessageOrBuilderList();
       } else {
@@ -5369,6 +5992,8 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5378,10 +6003,12 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
     public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() {
-      return getTrafficFieldBuilder().addBuilder(
-          com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
+      return getTrafficFieldBuilder()
+          .addBuilder(com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5390,12 +6017,13 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() {
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(
-        int index) {
-      return getTrafficFieldBuilder().addBuilder(
-          index, com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
+    public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(int index) {
+      return getTrafficFieldBuilder()
+          .addBuilder(index, com.google.cloud.run.v2.TrafficTarget.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Specifies how to distribute traffic over a collection of Revisions
      * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -5404,27 +6032,31 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(
      *
      * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
      */
-    public java.util.List 
-         getTrafficBuilderList() {
+    public java.util.List getTrafficBuilderList() {
       return getTrafficFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder> 
+            com.google.cloud.run.v2.TrafficTarget,
+            com.google.cloud.run.v2.TrafficTarget.Builder,
+            com.google.cloud.run.v2.TrafficTargetOrBuilder>
         getTrafficFieldBuilder() {
       if (trafficBuilder_ == null) {
-        trafficBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.run.v2.TrafficTarget, com.google.cloud.run.v2.TrafficTarget.Builder, com.google.cloud.run.v2.TrafficTargetOrBuilder>(
-                traffic_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        trafficBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.run.v2.TrafficTarget,
+                com.google.cloud.run.v2.TrafficTarget.Builder,
+                com.google.cloud.run.v2.TrafficTargetOrBuilder>(
+                traffic_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         traffic_ = null;
       }
       return trafficBuilder_;
     }
 
-    private long observedGeneration_ ;
+    private long observedGeneration_;
     /**
+     *
+     *
      * 
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5434,6 +6066,7 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -5441,6 +6074,8 @@ public long getObservedGeneration() { return observedGeneration_; } /** + * + * *
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5450,16 +6085,19 @@ public long getObservedGeneration() {
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The observedGeneration to set. * @return This builder for chaining. */ public Builder setObservedGeneration(long value) { - + observedGeneration_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The generation of this Service currently serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -5469,10 +6107,11 @@ public Builder setObservedGeneration(long value) {
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; @@ -5480,8 +6119,13 @@ public Builder clearObservedGeneration() { private com.google.cloud.run.v2.Condition terminalCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> terminalConditionBuilder_; + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> + terminalConditionBuilder_; /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5489,13 +6133,18 @@ public Builder clearObservedGeneration() {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ public boolean hasTerminalCondition() { return terminalConditionBuilder_ != null || terminalCondition_ != null; } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5503,17 +6152,24 @@ public boolean hasTerminalCondition() {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalCondition. */ public com.google.cloud.run.v2.Condition getTerminalCondition() { if (terminalConditionBuilder_ == null) { - return terminalCondition_ == null ? com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; + return terminalCondition_ == null + ? com.google.cloud.run.v2.Condition.getDefaultInstance() + : terminalCondition_; } else { return terminalConditionBuilder_.getMessage(); } } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5521,7 +6177,9 @@ public com.google.cloud.run.v2.Condition getTerminalCondition() {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { @@ -5537,6 +6195,8 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5544,10 +6204,11 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setTerminalCondition( - com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder builderForValue) { if (terminalConditionBuilder_ == null) { terminalCondition_ = builderForValue.build(); onChanged(); @@ -5558,6 +6219,8 @@ public Builder setTerminalCondition( return this; } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5565,13 +6228,17 @@ public Builder setTerminalCondition(
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { if (terminalCondition_ != null) { terminalCondition_ = - com.google.cloud.run.v2.Condition.newBuilder(terminalCondition_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.Condition.newBuilder(terminalCondition_) + .mergeFrom(value) + .buildPartial(); } else { terminalCondition_ = value; } @@ -5583,6 +6250,8 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5590,7 +6259,9 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTerminalCondition() { if (terminalConditionBuilder_ == null) { @@ -5604,6 +6275,8 @@ public Builder clearTerminalCondition() { return this; } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5611,14 +6284,18 @@ public Builder clearTerminalCondition() {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition.Builder getTerminalConditionBuilder() { - + onChanged(); return getTerminalConditionFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5626,17 +6303,22 @@ public com.google.cloud.run.v2.Condition.Builder getTerminalConditionBuilder() {
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { if (terminalConditionBuilder_ != null) { return terminalConditionBuilder_.getMessageOrBuilder(); } else { - return terminalCondition_ == null ? - com.google.cloud.run.v2.Condition.getDefaultInstance() : terminalCondition_; + return terminalCondition_ == null + ? com.google.cloud.run.v2.Condition.getDefaultInstance() + : terminalCondition_; } } /** + * + * *
      * Output only. The Condition of this Service, containing its readiness status, and
      * detailed error information in case it did not reach a serving state. See
@@ -5644,35 +6326,46 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(
      * process in Cloud Run.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> getTerminalConditionFieldBuilder() { if (terminalConditionBuilder_ == null) { - terminalConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( - getTerminalCondition(), - getParentForChildren(), - isClean()); + terminalConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder>( + getTerminalCondition(), getParentForChildren(), isClean()); terminalCondition_ = null; } return terminalConditionBuilder_; } private java.util.List conditions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> conditionsBuilder_; + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5680,7 +6373,9 @@ private void ensureConditionsIsMutable() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5690,6 +6385,8 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5697,7 +6394,9 @@ public java.util.List getConditionsList() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5707,6 +6406,8 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5714,7 +6415,9 @@ public int getConditionsCount() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5724,6 +6427,8 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5731,10 +6436,11 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.cloud.run.v2.Condition value) { + public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5748,6 +6454,8 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5755,7 +6463,9 @@ public Builder setConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5769,6 +6479,8 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5776,7 +6488,9 @@ public Builder setConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -5792,6 +6506,8 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5799,10 +6515,11 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.cloud.run.v2.Condition value) { + public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5816,6 +6533,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5823,10 +6542,11 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.cloud.run.v2.Condition.Builder builderForValue) { + public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -5837,6 +6557,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5844,7 +6566,9 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5858,6 +6582,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5865,14 +6591,15 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -5880,6 +6607,8 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5887,7 +6616,9 @@ public Builder addAllConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5900,6 +6631,8 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5907,7 +6640,9 @@ public Builder clearConditions() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5920,6 +6655,8 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5927,13 +6664,16 @@ public Builder removeConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( - int index) { + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5941,16 +6681,20 @@ public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5958,10 +6702,12 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5969,6 +6715,8 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5976,13 +6724,17 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.cloud.run.v2.Condition.getDefaultInstance()); + return getConditionsFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -5990,14 +6742,17 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Condition.getDefaultInstance()); + public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Condition.getDefaultInstance()); } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Service does not reach its
@@ -6005,22 +6760,26 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder> + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( - conditions_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Condition, + com.google.cloud.run.v2.Condition.Builder, + com.google.cloud.run.v2.ConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; @@ -6028,20 +6787,24 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder( private java.lang.Object latestReadyRevision_ = ""; /** + * + * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestReadyRevision. */ public java.lang.String getLatestReadyRevision() { java.lang.Object ref = latestReadyRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestReadyRevision_ = s; return s; @@ -6050,22 +6813,25 @@ public java.lang.String getLatestReadyRevision() { } } /** + * + * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestReadyRevision. */ - public com.google.protobuf.ByteString - getLatestReadyRevisionBytes() { + public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { java.lang.Object ref = latestReadyRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); latestReadyRevision_ = b; return b; } else { @@ -6073,60 +6839,73 @@ public java.lang.String getLatestReadyRevision() { } } /** + * + * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The latestReadyRevision to set. * @return This builder for chaining. */ - public Builder setLatestReadyRevision( - java.lang.String value) { + public Builder setLatestReadyRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + latestReadyRevision_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLatestReadyRevision() { - + latestReadyRevision_ = getDefaultInstance().getLatestReadyRevision(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the latest revision that is serving traffic. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
      * Run.
      * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for latestReadyRevision to set. * @return This builder for chaining. */ - public Builder setLatestReadyRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setLatestReadyRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestReadyRevision_ = value; onChanged(); return this; @@ -6134,19 +6913,23 @@ public Builder setLatestReadyRevisionBytes( private java.lang.Object latestCreatedRevision_ = ""; /** + * + * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestCreatedRevision. */ public java.lang.String getLatestCreatedRevision() { java.lang.Object ref = latestCreatedRevision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); latestCreatedRevision_ = s; return s; @@ -6155,21 +6938,24 @@ public java.lang.String getLatestCreatedRevision() { } } /** + * + * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestCreatedRevision. */ - public com.google.protobuf.ByteString - getLatestCreatedRevisionBytes() { + public com.google.protobuf.ByteString getLatestCreatedRevisionBytes() { java.lang.Object ref = latestCreatedRevision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); latestCreatedRevision_ = b; return b; } else { @@ -6177,82 +6963,104 @@ public java.lang.String getLatestCreatedRevision() { } } /** + * + * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The latestCreatedRevision to set. * @return This builder for chaining. */ - public Builder setLatestCreatedRevision( - java.lang.String value) { + public Builder setLatestCreatedRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + latestCreatedRevision_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLatestCreatedRevision() { - + latestCreatedRevision_ = getDefaultInstance().getLatestCreatedRevision(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the last created revision. See comments in `reconciling` for
      * additional information on reconciliation process in Cloud Run.
      * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for latestCreatedRevision to set. * @return This builder for chaining. */ - public Builder setLatestCreatedRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setLatestCreatedRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestCreatedRevision_ = value; onChanged(); return this; } private java.util.List trafficStatuses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTrafficStatusesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - trafficStatuses_ = new java.util.ArrayList(trafficStatuses_); + trafficStatuses_ = + new java.util.ArrayList(trafficStatuses_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> trafficStatusesBuilder_; + com.google.cloud.run.v2.TrafficTargetStatus, + com.google.cloud.run.v2.TrafficTargetStatus.Builder, + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> + trafficStatusesBuilder_; /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getTrafficStatusesList() { if (trafficStatusesBuilder_ == null) { @@ -6262,13 +7070,17 @@ public java.util.List getTrafficSta } } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getTrafficStatusesCount() { if (trafficStatusesBuilder_ == null) { @@ -6278,13 +7090,17 @@ public int getTrafficStatusesCount() { } } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) { if (trafficStatusesBuilder_ == null) { @@ -6294,13 +7110,17 @@ public com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index) } } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus value) { @@ -6317,13 +7137,17 @@ public Builder setTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -6337,13 +7161,17 @@ public Builder setTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTrafficStatuses(com.google.cloud.run.v2.TrafficTargetStatus value) { if (trafficStatusesBuilder_ == null) { @@ -6359,13 +7187,17 @@ public Builder addTrafficStatuses(com.google.cloud.run.v2.TrafficTargetStatus va return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus value) { @@ -6382,13 +7214,17 @@ public Builder addTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTrafficStatuses( com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -6402,13 +7238,17 @@ public Builder addTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTrafficStatuses( int index, com.google.cloud.run.v2.TrafficTargetStatus.Builder builderForValue) { @@ -6422,20 +7262,23 @@ public Builder addTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllTrafficStatuses( java.lang.Iterable values) { if (trafficStatusesBuilder_ == null) { ensureTrafficStatusesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trafficStatuses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trafficStatuses_); onChanged(); } else { trafficStatusesBuilder_.addAllMessages(values); @@ -6443,13 +7286,17 @@ public Builder addAllTrafficStatuses( return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTrafficStatuses() { if (trafficStatusesBuilder_ == null) { @@ -6462,13 +7309,17 @@ public Builder clearTrafficStatuses() { return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeTrafficStatuses(int index) { if (trafficStatusesBuilder_ == null) { @@ -6481,45 +7332,58 @@ public Builder removeTrafficStatuses(int index) { return this; } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder getTrafficStatusesBuilder( int index) { return getTrafficStatusesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( int index) { if (trafficStatusesBuilder_ == null) { - return trafficStatuses_.get(index); } else { + return trafficStatuses_.get(index); + } else { return trafficStatusesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTrafficStatusesOrBuilderList() { + public java.util.List + getTrafficStatusesOrBuilderList() { if (trafficStatusesBuilder_ != null) { return trafficStatusesBuilder_.getMessageOrBuilderList(); } else { @@ -6527,51 +7391,69 @@ public com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOr } } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBuilder() { - return getTrafficStatusesFieldBuilder().addBuilder( - com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); + return getTrafficStatusesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBuilder( int index) { - return getTrafficStatusesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); + return getTrafficStatusesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.TrafficTargetStatus.getDefaultInstance()); } /** + * + * *
      * Output only. Detailed status information for corresponding traffic targets. See comments
      * in `reconciling` for additional information on reconciliation process in
      * Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTrafficStatusesBuilderList() { + public java.util.List + getTrafficStatusesBuilderList() { return getTrafficStatusesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> + com.google.cloud.run.v2.TrafficTargetStatus, + com.google.cloud.run.v2.TrafficTargetStatus.Builder, + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder> getTrafficStatusesFieldBuilder() { if (trafficStatusesBuilder_ == null) { - trafficStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.TrafficTargetStatus, com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder>( + trafficStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.TrafficTargetStatus, + com.google.cloud.run.v2.TrafficTargetStatus.Builder, + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder>( trafficStatuses_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -6583,18 +7465,20 @@ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBui private java.lang.Object uri_ = ""; /** + * + * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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; @@ -6603,20 +7487,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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 { @@ -6624,61 +7509,70 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The main URI in which this Service is serving traffic.
      * 
* * string uri = 36 [(.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; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -6702,6 +7596,7 @@ public Builder setUriBytes(
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -6709,6 +7604,8 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -6732,16 +7629,19 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Returns true if the Service is currently being acted upon by the system to
      * bring it into the desired state.
@@ -6765,10 +7665,11 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { - + reconciling_ = false; onChanged(); return this; @@ -6776,19 +7677,21 @@ public Builder clearReconciling() { private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -6797,21 +7700,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -6819,64 +7723,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. A system-generated fingerprint for this version of the
      * resource. May be used to detect modification conflict during updates.
      * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = 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); } @@ -6886,12 +7797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Service) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Service) private static final com.google.cloud.run.v2.Service DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Service(); } @@ -6900,16 +7811,16 @@ public static com.google.cloud.run.v2.Service getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Service(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Service(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6924,6 +7835,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index df89e68..d8cc384 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.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/run/v2/service.proto package com.google.cloud.run.v2; -public interface ServiceOrBuilder extends +public interface ServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Service) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -17,10 +35,13 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -30,56 +51,68 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -88,11 +121,14 @@ public interface ServiceOrBuilder extends
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ long getGeneration(); /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -110,6 +146,8 @@ public interface ServiceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -125,15 +163,13 @@ public interface ServiceOrBuilder extends
    *
    * map<string, string> labels = 5;
    */
-  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();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -149,9 +185,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -169,11 +206,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -189,11 +228,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -207,6 +246,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -218,15 +259,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> annotations = 6;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -238,9 +277,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 6;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -254,11 +294,13 @@ boolean containsAnnotations(
    */
 
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -270,202 +312,266 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifier. */ java.lang.String getLastModifier(); /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastModifier. */ - com.google.protobuf.ByteString - getLastModifierBytes(); + com.google.protobuf.ByteString getLastModifierBytes(); /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The client. */ java.lang.String getClient(); /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The bytes for client. */ - com.google.protobuf.ByteString - getClientBytes(); + com.google.protobuf.ByteString getClientBytes(); /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The clientVersion. */ java.lang.String getClientVersion(); /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The bytes for clientVersion. */ - com.google.protobuf.ByteString - getClientVersionBytes(); + com.google.protobuf.ByteString getClientVersionBytes(); /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -473,10 +579,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The enum numeric value on the wire for ingress. */ int getIngressValue(); /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -484,11 +593,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The ingress. */ com.google.cloud.run.v2.IngressTraffic getIngress(); /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -497,10 +609,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -509,29 +624,38 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return Whether the binaryAuthorization field is set. */ boolean hasBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return The binaryAuthorization. */ com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
@@ -541,33 +665,49 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.run.v2.RevisionTemplate getTemplate(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder(); /** + * + * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -576,9 +716,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List 
-      getTrafficList();
+  java.util.List getTrafficList();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -589,6 +730,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.TrafficTarget getTraffic(int index);
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -599,6 +742,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getTrafficCount();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -607,9 +752,11 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List 
+  java.util.List
       getTrafficOrBuilderList();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -618,10 +765,11 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
-      int index);
+  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -631,11 +779,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -643,11 +794,16 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ boolean hasTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -655,11 +811,16 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalCondition. */ com.google.cloud.run.v2.Condition getTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -667,11 +828,15 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -679,11 +844,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -691,10 +859,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -702,10 +874,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -713,11 +889,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -725,132 +904,176 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestReadyRevision. */ java.lang.String getLatestReadyRevision(); /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestReadyRevision. */ - com.google.protobuf.ByteString - getLatestReadyRevisionBytes(); + com.google.protobuf.ByteString getLatestReadyRevisionBytes(); /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestCreatedRevision. */ java.lang.String getLatestCreatedRevision(); /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestCreatedRevision. */ - com.google.protobuf.ByteString - getLatestCreatedRevisionBytes(); + com.google.protobuf.ByteString getLatestCreatedRevisionBytes(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getTrafficStatusesList(); + java.util.List getTrafficStatusesList(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTrafficStatusesCount(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTrafficStatusesOrBuilderList(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( - int index); + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder(int index); /** + * + * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -874,29 +1097,35 @@ com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java new file mode 100644 index 0000000..1325061 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,337 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/service.proto + +package com.google.cloud.run.v2; + +public final class ServiceProto { + private ServiceProto() {} + + 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_run_v2_CreateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_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/run/v2/service.proto\022\023goo" + + "gle.cloud.run.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\035google/api/lau" + + "nch_stage.proto\032\031google/api/resource.pro" + + "to\032\030google/api/routing.proto\032#google/clo" + + "ud/run/v2/condition.proto\032+google/cloud/" + + "run/v2/revision_template.proto\032(google/c" + + "loud/run/v2/traffic_target.proto\032)google" + + "/cloud/run/v2/vendor_settings.proto\032\036goo" + + "gle/iam/v1/iam_policy.proto\032\032google/iam/" + + "v1/policy.proto\032#google/longrunning/oper" + + "ations.proto\032\037google/protobuf/timestamp." + + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + + ".google.api.LaunchStage\022F\n\024binary_author" + + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + + ".googleapis.com/Revision\022G\n\020traffic_stat" + + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}R\001\0012\267\r\n\010" + + "Services\022\375\001\n\rCreateService\022).google.clou" + + "d.run.v2.CreateServiceRequest\032\035.google.l" + + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + + "nt=projects/*/locations/*}/services:\007ser" + + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + + "ns/{location=*}\332A\031parent,service,service" + + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + + "&.google.cloud.run.v2.GetServiceRequest\032" + + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + + "v2/{name=projects/*/locations/*/services" + + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + + "(.google.cloud.run.v2.ListServicesReques" + + "t\032).google.cloud.run.v2.ListServicesResp" + + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + + "ects/*/locations/{location=*}\332A\006parent\022\374" + + "\001\n\rUpdateService\022).google.cloud.run.v2.U" + + "pdateServiceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + + "rojects/*/locations/*/services/*}:\007servi" + + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + + "{name=projects/*/locations/*/services/*}" + + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + + "\344\223\002?\022=/v2/{resource=projects/*/locations" + + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + + "source=projects/*/locations/*/services/*" + + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + + "locations/*/services/*}:testIamPermissio" + + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBa\n" + + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\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.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, + new java.lang.String[] { + "Parent", "Service", "ServiceId", "ValidateOnly", + }); + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, + new java.lang.String[] { + "Service", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, + new java.lang.String[] { + "Services", "NextPageToken", + }); + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Service_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_Service_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_descriptor, + new java.lang.String[] { + "Name", + "Description", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "Creator", + "LastModifier", + "Client", + "ClientVersion", + "Ingress", + "LaunchStage", + "BinaryAuthorization", + "Template", + "Traffic", + "ObservedGeneration", + "TerminalCondition", + "Conditions", + "LatestReadyRevision", + "LatestCreatedRevision", + "TrafficStatuses", + "Uri", + "Reconciling", + "Etag", + }); + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + 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.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java index 73e9a3f..2f05786 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** + * + * *
  * Holds a single traffic routing entry for the Service. Allocations can be done
  * to a specific Revision name, or pointing to the latest Ready Revision.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.TrafficTarget}
  */
-public final class TrafficTarget extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TrafficTarget extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TrafficTarget)
     TrafficTargetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TrafficTarget.newBuilder() to construct.
   private TrafficTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TrafficTarget() {
     type_ = 0;
     revision_ = "";
@@ -28,16 +46,15 @@ private TrafficTarget() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TrafficTarget();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TrafficTarget(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,36 +73,39 @@ private TrafficTarget(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            type_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            revision_ = s;
-            break;
-          }
-          case 24: {
+              type_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            percent_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              revision_ = s;
+              break;
+            }
+          case 24:
+            {
+              percent_ = input.readInt32();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            tag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              tag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,62 +113,78 @@ private TrafficTarget(
     } 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.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.TrafficTargetProto
+        .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
+    return com.google.cloud.run.v2.TrafficTargetProto
+        .internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.TrafficTarget.class, com.google.cloud.run.v2.TrafficTarget.Builder.class);
+            com.google.cloud.run.v2.TrafficTarget.class,
+            com.google.cloud.run.v2.TrafficTarget.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
+   *
+   *
    * 
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { + @java.lang.Override + public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = + com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null + ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED + : result; } public static final int REVISION_FIELD_NUMBER = 2; private volatile java.lang.Object revision_; /** + * + * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ @java.lang.Override @@ -157,30 +193,30 @@ 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; } } /** + * + * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -191,12 +227,15 @@ public java.lang.String getRevision() { public static final int PERCENT_FIELD_NUMBER = 3; private int percent_; /** + * + * *
    * Specifies percent of the traffic to this Revision.
    * This defaults to zero if unspecified.
    * 
* * int32 percent = 3; + * * @return The percent. */ @java.lang.Override @@ -207,12 +246,15 @@ public int getPercent() { public static final int TAG_FIELD_NUMBER = 4; private volatile java.lang.Object tag_; /** + * + * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; + * * @return The tag. */ @java.lang.Override @@ -221,30 +263,30 @@ public java.lang.String getTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** + * + * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; + * * @return The bytes for tag. */ @java.lang.Override - public com.google.protobuf.ByteString - getTagBytes() { + public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { @@ -253,6 +295,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,9 +307,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.run.v2.TrafficTargetAllocationType + .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { @@ -287,16 +332,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.run.v2.TrafficTargetAllocationType + .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_); } if (percent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, percent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, percent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tag_); @@ -309,7 +355,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.run.v2.TrafficTarget)) { return super.equals(obj); @@ -317,12 +363,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.run.v2.TrafficTarget other = (com.google.cloud.run.v2.TrafficTarget) obj; if (type_ != other.type_) return false; - if (!getRevision() - .equals(other.getRevision())) return false; - if (getPercent() - != other.getPercent()) return false; - if (!getTag() - .equals(other.getTag())) return false; + if (!getRevision().equals(other.getRevision())) return false; + if (getPercent() != other.getPercent()) return false; + if (!getTag().equals(other.getTag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,97 +390,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TrafficTarget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TrafficTarget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.TrafficTarget parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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.run.v2.TrafficTarget 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; } /** + * + * *
    * Holds a single traffic routing entry for the Service. Allocations can be done
    * to a specific Revision name, or pointing to the latest Ready Revision.
@@ -445,21 +494,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.TrafficTarget}
    */
-  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.run.v2.TrafficTarget)
       com.google.cloud.run.v2.TrafficTargetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.TrafficTargetProto
+          .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
+      return com.google.cloud.run.v2.TrafficTargetProto
+          .internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.TrafficTarget.class, com.google.cloud.run.v2.TrafficTarget.Builder.class);
+              com.google.cloud.run.v2.TrafficTarget.class,
+              com.google.cloud.run.v2.TrafficTarget.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.TrafficTarget.newBuilder()
@@ -467,16 +518,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();
@@ -492,9 +542,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.TrafficTargetProto
+          .internal_static_google_cloud_run_v2_TrafficTarget_descriptor;
     }
 
     @java.lang.Override
@@ -513,7 +563,8 @@ public com.google.cloud.run.v2.TrafficTarget build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.TrafficTarget buildPartial() {
-      com.google.cloud.run.v2.TrafficTarget result = new com.google.cloud.run.v2.TrafficTarget(this);
+      com.google.cloud.run.v2.TrafficTarget result =
+          new com.google.cloud.run.v2.TrafficTarget(this);
       result.type_ = type_;
       result.revision_ = revision_;
       result.percent_ = percent_;
@@ -526,38 +577,39 @@ public com.google.cloud.run.v2.TrafficTarget 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.run.v2.TrafficTarget) {
-        return mergeFrom((com.google.cloud.run.v2.TrafficTarget)other);
+        return mergeFrom((com.google.cloud.run.v2.TrafficTarget) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -611,51 +663,67 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @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; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = + com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null + ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED + : result; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -663,21 +731,24 @@ public Builder setType(com.google.cloud.run.v2.TrafficTargetAllocationType value if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -685,19 +756,21 @@ public Builder clearType() { private java.lang.Object revision_ = ""; /** + * + * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; @@ -706,21 +779,22 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -728,70 +802,80 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; } /** + * + * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
      * Revision to which to send this portion of traffic, if traffic allocation is
      * by revision.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; } - private int percent_ ; + private int percent_; /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; + * * @return The percent. */ @java.lang.Override @@ -799,32 +883,38 @@ public int getPercent() { return percent_; } /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; + * * @param value The percent to set. * @return This builder for chaining. */ public Builder setPercent(int value) { - + percent_ = value; onChanged(); return this; } /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * This defaults to zero if unspecified.
      * 
* * int32 percent = 3; + * * @return This builder for chaining. */ public Builder clearPercent() { - + percent_ = 0; onChanged(); return this; @@ -832,19 +922,21 @@ public Builder clearPercent() { private java.lang.Object tag_ = ""; /** + * + * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; + * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; @@ -853,21 +945,22 @@ public java.lang.String getTag() { } } /** + * + * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; + * * @return The bytes for tag. */ - public com.google.protobuf.ByteString - getTagBytes() { + public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { @@ -875,64 +968,71 @@ public java.lang.String getTag() { } } /** + * + * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; + * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag( - java.lang.String value) { + public Builder setTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** + * + * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; + * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** + * + * *
      * Indicates a string to be part of the URI to exclusively reference this
      * target.
      * 
* * string tag = 4; + * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { + public Builder setTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = 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); } @@ -942,12 +1042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TrafficTarget) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TrafficTarget) private static final com.google.cloud.run.v2.TrafficTarget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TrafficTarget(); } @@ -956,16 +1056,16 @@ public static com.google.cloud.run.v2.TrafficTarget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrafficTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrafficTarget(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrafficTarget(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,6 +1080,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java index fad73ec..06c84b6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** + * + * *
  * The type of instance allocation.
  * 
* * Protobuf enum {@code google.cloud.run.v2.TrafficTargetAllocationType} */ -public enum TrafficTargetAllocationType - implements com.google.protobuf.ProtocolMessageEnum { +public enum TrafficTargetAllocationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified instance allocation type.
    * 
@@ -21,6 +39,8 @@ public enum TrafficTargetAllocationType */ TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * Allocates instances to the Service's latest ready Revision.
    * 
@@ -29,6 +49,8 @@ public enum TrafficTargetAllocationType */ TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST(1), /** + * + * *
    * Allocates instances to a Revision by name.
    * 
@@ -40,6 +62,8 @@ public enum TrafficTargetAllocationType ; /** + * + * *
    * Unspecified instance allocation type.
    * 
@@ -48,6 +72,8 @@ public enum TrafficTargetAllocationType */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Allocates instances to the Service's latest ready Revision.
    * 
@@ -56,6 +82,8 @@ public enum TrafficTargetAllocationType */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST_VALUE = 1; /** + * + * *
    * Allocates instances to a Revision by name.
    * 
@@ -64,7 +92,6 @@ public enum TrafficTargetAllocationType */ public static final int TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,10 +116,14 @@ public static TrafficTargetAllocationType valueOf(int value) { */ public static TrafficTargetAllocationType forNumber(int value) { switch (value) { - case 0: return TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED; - case 1: return TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST; - case 2: return TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION; - default: return null; + case 0: + return TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED; + case 1: + return TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST; + case 2: + return TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION; + default: + return null; } } @@ -100,28 +131,28 @@ public static TrafficTargetAllocationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TrafficTargetAllocationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrafficTargetAllocationType findValueByNumber(int number) { - return TrafficTargetAllocationType.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 TrafficTargetAllocationType findValueByNumber(int number) { + return TrafficTargetAllocationType.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.run.v2.TrafficTargetProto.getDescriptor().getEnumTypes().get(0); } @@ -130,8 +161,7 @@ public TrafficTargetAllocationType findValueByNumber(int number) { public static TrafficTargetAllocationType 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 +177,3 @@ private TrafficTargetAllocationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.TrafficTargetAllocationType) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java index 2cb2b01..ce98b2e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java @@ -1,83 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/traffic_target.proto package com.google.cloud.run.v2; -public interface TrafficTargetOrBuilder extends +public interface TrafficTargetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TrafficTarget) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ com.google.cloud.run.v2.TrafficTargetAllocationType getType(); /** + * + * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
    * Revision to which to send this portion of traffic, if traffic allocation is
    * by revision.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); /** + * + * *
    * Specifies percent of the traffic to this Revision.
    * This defaults to zero if unspecified.
    * 
* * int32 percent = 3; + * * @return The percent. */ int getPercent(); /** + * + * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; + * * @return The tag. */ java.lang.String getTag(); /** + * + * *
    * Indicates a string to be part of the URI to exclusively reference this
    * target.
    * 
* * string tag = 4; + * * @return The bytes for tag. */ - com.google.protobuf.ByteString - getTagBytes(); + com.google.protobuf.ByteString getTagBytes(); } diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java new file mode 100644 index 0000000..fba638e --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.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/run/v2/traffic_target.proto + +package com.google.cloud.run.v2; + +public final class TrafficTargetProto { + private TrafficTargetProto() {} + + 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_run_v2_TrafficTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TrafficTargetStatus_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/run/v2/traffic_target.pro" + + "to\022\023google.cloud.run.v2\032\031google/api/reso" + + "urce.proto\"\241\001\n\rTrafficTarget\022>\n\004type\030\001 \001" + + "(\01620.google.cloud.run.v2.TrafficTargetAl" + + "locationType\0222\n\010revision\030\002 \001(\tB \372A\035\n\033run" + + ".googleapis.com/Revision\022\017\n\007percent\030\003 \001(" + + "\005\022\013\n\003tag\030\004 \001(\t\"\264\001\n\023TrafficTargetStatus\022>" + + "\n\004type\030\001 \001(\01620.google.cloud.run.v2.Traff" + + "icTargetAllocationType\0222\n\010revision\030\002 \001(\t" + + "B \372A\035\n\033run.googleapis.com/Revision\022\017\n\007pe" + + "rcent\030\003 \001(\005\022\013\n\003tag\030\004 \001(\t\022\013\n\003uri\030\005 \001(\t*\245\001" + + "\n\033TrafficTargetAllocationType\022.\n*TRAFFIC" + + "_TARGET_ALLOCATION_TYPE_UNSPECIFIED\020\000\022)\n" + + "%TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\020\001" + + "\022+\n\'TRAFFIC_TARGET_ALLOCATION_TYPE_REVIS" + + "ION\020\002Bg\n\027com.google.cloud.run.v2B\022Traffi" + + "cTargetProtoP\001Z6google.golang.org/genpro" + + "to/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_TrafficTarget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_TrafficTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TrafficTarget_descriptor, + new java.lang.String[] { + "Type", "Revision", "Percent", "Tag", + }); + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor, + new java.lang.String[] { + "Type", "Revision", "Percent", "Tag", "Uri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java index 20dddcb..d72bc83 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.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/run/v2/traffic_target.proto package com.google.cloud.run.v2; /** + * + * *
  * Represents the observed state of a single `TrafficTarget` entry.
  * 
* * Protobuf type {@code google.cloud.run.v2.TrafficTargetStatus} */ -public final class TrafficTargetStatus extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TrafficTargetStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TrafficTargetStatus) TrafficTargetStatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TrafficTargetStatus.newBuilder() to construct. private TrafficTargetStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TrafficTargetStatus() { type_ = 0; revision_ = ""; @@ -28,16 +46,15 @@ private TrafficTargetStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TrafficTargetStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TrafficTargetStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private TrafficTargetStatus( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + int rawValue = input.readEnum(); - revision_ = s; - break; - } - case 24: { + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - percent_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + revision_ = s; + break; + } + case 24: + { + percent_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - tag_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + tag_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,61 +120,77 @@ private TrafficTargetStatus( } 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.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TrafficTargetProto + .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable + return com.google.cloud.run.v2.TrafficTargetProto + .internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TrafficTargetStatus.class, com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); + com.google.cloud.run.v2.TrafficTargetStatus.class, + com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { + @java.lang.Override + public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = + com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null + ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED + : result; } public static final int REVISION_FIELD_NUMBER = 2; private volatile java.lang.Object revision_; /** + * + * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ @java.lang.Override @@ -162,29 +199,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; } } /** + * + * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -195,11 +232,14 @@ public java.lang.String getRevision() { public static final int PERCENT_FIELD_NUMBER = 3; private int percent_; /** + * + * *
    * Specifies percent of the traffic to this Revision.
    * 
* * int32 percent = 3; + * * @return The percent. */ @java.lang.Override @@ -210,11 +250,14 @@ public int getPercent() { public static final int TAG_FIELD_NUMBER = 4; private volatile java.lang.Object tag_; /** + * + * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; + * * @return The tag. */ @java.lang.Override @@ -223,29 +266,29 @@ public java.lang.String getTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** + * + * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; + * * @return The bytes for tag. */ @java.lang.Override - public com.google.protobuf.ByteString - getTagBytes() { + public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { @@ -256,11 +299,14 @@ public java.lang.String getTag() { public static final int URI_FIELD_NUMBER = 5; private volatile java.lang.Object uri_; /** + * + * *
    * Displays the target URI.
    * 
* * string uri = 5; + * * @return The uri. */ @java.lang.Override @@ -269,29 +315,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; } } /** + * + * *
    * Displays the target URI.
    * 
* * string uri = 5; + * * @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 { @@ -300,6 +346,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,9 +358,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.run.v2.TrafficTargetAllocationType + .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { @@ -337,16 +386,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.run.v2.TrafficTargetAllocationType.TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.run.v2.TrafficTargetAllocationType + .TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_); } if (percent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, percent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, percent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tag_); @@ -362,22 +412,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.run.v2.TrafficTargetStatus)) { return super.equals(obj); } - com.google.cloud.run.v2.TrafficTargetStatus other = (com.google.cloud.run.v2.TrafficTargetStatus) obj; + com.google.cloud.run.v2.TrafficTargetStatus other = + (com.google.cloud.run.v2.TrafficTargetStatus) obj; if (type_ != other.type_) return false; - if (!getRevision() - .equals(other.getRevision())) return false; - if (getPercent() - != other.getPercent()) return false; - if (!getTag() - .equals(other.getTag())) return false; - if (!getUri() - .equals(other.getUri())) return false; + if (!getRevision().equals(other.getRevision())) return false; + if (getPercent() != other.getPercent()) return false; + if (!getTag().equals(other.getTag())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,118 +451,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TrafficTargetStatus parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TrafficTargetStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.TrafficTargetStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus 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 observed state of a single `TrafficTarget` entry.
    * 
* * Protobuf type {@code google.cloud.run.v2.TrafficTargetStatus} */ - 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.run.v2.TrafficTargetStatus) com.google.cloud.run.v2.TrafficTargetStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TrafficTargetProto + .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable + return com.google.cloud.run.v2.TrafficTargetProto + .internal_static_google_cloud_run_v2_TrafficTargetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TrafficTargetStatus.class, com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); + com.google.cloud.run.v2.TrafficTargetStatus.class, + com.google.cloud.run.v2.TrafficTargetStatus.Builder.class); } // Construct using com.google.cloud.run.v2.TrafficTargetStatus.newBuilder() @@ -523,16 +579,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 +605,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.TrafficTargetProto.internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.TrafficTargetProto + .internal_static_google_cloud_run_v2_TrafficTargetStatus_descriptor; } @java.lang.Override @@ -571,7 +626,8 @@ public com.google.cloud.run.v2.TrafficTargetStatus build() { @java.lang.Override public com.google.cloud.run.v2.TrafficTargetStatus buildPartial() { - com.google.cloud.run.v2.TrafficTargetStatus result = new com.google.cloud.run.v2.TrafficTargetStatus(this); + com.google.cloud.run.v2.TrafficTargetStatus result = + new com.google.cloud.run.v2.TrafficTargetStatus(this); result.type_ = type_; result.revision_ = revision_; result.percent_ = percent_; @@ -585,38 +641,39 @@ public com.google.cloud.run.v2.TrafficTargetStatus 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.run.v2.TrafficTargetStatus) { - return mergeFrom((com.google.cloud.run.v2.TrafficTargetStatus)other); + return mergeFrom((com.google.cloud.run.v2.TrafficTargetStatus) other); } else { super.mergeFrom(other); return this; @@ -674,51 +731,67 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @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; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetAllocationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.TrafficTargetAllocationType result = com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); - return result == null ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED : result; + com.google.cloud.run.v2.TrafficTargetAllocationType result = + com.google.cloud.run.v2.TrafficTargetAllocationType.valueOf(type_); + return result == null + ? com.google.cloud.run.v2.TrafficTargetAllocationType.UNRECOGNIZED + : result; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -726,21 +799,24 @@ public Builder setType(com.google.cloud.run.v2.TrafficTargetAllocationType value if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The allocation type for this traffic target.
      * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -748,18 +824,20 @@ public Builder clearType() { private java.lang.Object revision_ = ""; /** + * + * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; @@ -768,20 +846,21 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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 { @@ -789,66 +868,76 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; } /** + * + * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
      * Revision to which this traffic is sent.
      * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @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; } - private int percent_ ; + private int percent_; /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; + * * @return The percent. */ @java.lang.Override @@ -856,30 +945,36 @@ public int getPercent() { return percent_; } /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; + * * @param value The percent to set. * @return This builder for chaining. */ public Builder setPercent(int value) { - + percent_ = value; onChanged(); return this; } /** + * + * *
      * Specifies percent of the traffic to this Revision.
      * 
* * int32 percent = 3; + * * @return This builder for chaining. */ public Builder clearPercent() { - + percent_ = 0; onChanged(); return this; @@ -887,18 +982,20 @@ public Builder clearPercent() { private java.lang.Object tag_ = ""; /** + * + * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; + * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; @@ -907,20 +1004,21 @@ public java.lang.String getTag() { } } /** + * + * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; + * * @return The bytes for tag. */ - public com.google.protobuf.ByteString - getTagBytes() { + public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tag_ = b; return b; } else { @@ -928,54 +1026,61 @@ public java.lang.String getTag() { } } /** + * + * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; + * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag( - java.lang.String value) { + public Builder setTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; + * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** + * + * *
      * Indicates the string used in the URI to exclusively reference this target.
      * 
* * string tag = 4; + * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { + public Builder setTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = value; onChanged(); return this; @@ -983,18 +1088,20 @@ public Builder setTagBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * Displays the target URI.
      * 
* * string uri = 5; + * * @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; @@ -1003,20 +1110,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Displays the target URI.
      * 
* * string uri = 5; + * * @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 { @@ -1024,61 +1132,68 @@ public java.lang.String getUri() { } } /** + * + * *
      * Displays the target URI.
      * 
* * string uri = 5; + * * @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; } /** + * + * *
      * Displays the target URI.
      * 
* * string uri = 5; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Displays the target URI.
      * 
* * string uri = 5; + * * @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; } + @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); } @@ -1088,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TrafficTargetStatus) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TrafficTargetStatus) private static final com.google.cloud.run.v2.TrafficTargetStatus DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TrafficTargetStatus(); } @@ -1102,16 +1217,16 @@ public static com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrafficTargetStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrafficTargetStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficTargetStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrafficTargetStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,6 +1241,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java index 125182f..ab98690 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java @@ -1,98 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/traffic_target.proto package com.google.cloud.run.v2; -public interface TrafficTargetStatusOrBuilder extends +public interface TrafficTargetStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TrafficTargetStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The allocation type for this traffic target.
    * 
* * .google.cloud.run.v2.TrafficTargetAllocationType type = 1; + * * @return The type. */ com.google.cloud.run.v2.TrafficTargetAllocationType getType(); /** + * + * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
    * Revision to which this traffic is sent.
    * 
* * string revision = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); /** + * + * *
    * Specifies percent of the traffic to this Revision.
    * 
* * int32 percent = 3; + * * @return The percent. */ int getPercent(); /** + * + * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; + * * @return The tag. */ java.lang.String getTag(); /** + * + * *
    * Indicates the string used in the URI to exclusively reference this target.
    * 
* * string tag = 4; + * * @return The bytes for tag. */ - com.google.protobuf.ByteString - getTagBytes(); + com.google.protobuf.ByteString getTagBytes(); /** + * + * *
    * Displays the target URI.
    * 
* * string uri = 5; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Displays the target URI.
    * 
* * string uri = 5; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index 6527a99..033b881 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.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/run/v2/service.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for updating a service.
  * 
* * Protobuf type {@code google.cloud.run.v2.UpdateServiceRequest} */ -public final class UpdateServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.UpdateServiceRequest) UpdateServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateServiceRequest.newBuilder() to construct. private UpdateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateServiceRequest() { - } + + private UpdateServiceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateServiceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateServiceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,36 +68,38 @@ private UpdateServiceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Service.Builder subBuilder = null; - if (service_ != null) { - subBuilder = service_.toBuilder(); + case 10: + { + com.google.cloud.run.v2.Service.Builder subBuilder = null; + if (service_ != null) { + subBuilder = service_.toBuilder(); + } + service_ = + input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(service_); + service_ = subBuilder.buildPartial(); + } + + break; } - service_ = input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(service_); - service_ = subBuilder.buildPartial(); + case 24: + { + validateOnly_ = input.readBool(); + break; } - - break; - } - case 24: { - - validateOnly_ = input.readBool(); - break; - } - case 32: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 32: + { + allowMissing_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,34 +107,40 @@ private UpdateServiceRequest( } 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.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateServiceRequest.class, com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); + com.google.cloud.run.v2.UpdateServiceRequest.class, + com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.cloud.run.v2.Service service_; /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ @java.lang.Override @@ -124,11 +148,15 @@ public boolean hasService() { return service_ != null; } /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ @java.lang.Override @@ -136,11 +164,14 @@ public com.google.cloud.run.v2.Service getService() { return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { @@ -150,12 +181,15 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -166,6 +200,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_; /** + * + * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -173,6 +209,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -181,6 +218,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,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 { if (service_ != null) { output.writeMessage(1, getService()); } @@ -213,16 +250,13 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,22 +266,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.run.v2.UpdateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.UpdateServiceRequest other = (com.google.cloud.run.v2.UpdateServiceRequest) obj; + com.google.cloud.run.v2.UpdateServiceRequest other = + (com.google.cloud.run.v2.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -264,128 +296,135 @@ public int hashCode() { hash = (53 * hash) + getService().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.UpdateServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.UpdateServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.UpdateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest 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 message for updating a service.
    * 
* * Protobuf type {@code google.cloud.run.v2.UpdateServiceRequest} */ - 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.run.v2.UpdateServiceRequest) com.google.cloud.run.v2.UpdateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateServiceRequest.class, com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); + com.google.cloud.run.v2.UpdateServiceRequest.class, + com.google.cloud.run.v2.UpdateServiceRequest.Builder.class); } // Construct using com.google.cloud.run.v2.UpdateServiceRequest.newBuilder() @@ -393,16 +432,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(); @@ -420,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ServiceProto.internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; } @java.lang.Override @@ -441,7 +479,8 @@ public com.google.cloud.run.v2.UpdateServiceRequest build() { @java.lang.Override public com.google.cloud.run.v2.UpdateServiceRequest buildPartial() { - com.google.cloud.run.v2.UpdateServiceRequest result = new com.google.cloud.run.v2.UpdateServiceRequest(this); + com.google.cloud.run.v2.UpdateServiceRequest result = + new com.google.cloud.run.v2.UpdateServiceRequest(this); if (serviceBuilder_ == null) { result.service_ = service_; } else { @@ -457,38 +496,39 @@ public com.google.cloud.run.v2.UpdateServiceRequest 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.run.v2.UpdateServiceRequest) { - return mergeFrom((com.google.cloud.run.v2.UpdateServiceRequest)other); + return mergeFrom((com.google.cloud.run.v2.UpdateServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -537,24 +577,35 @@ public Builder mergeFrom( private com.google.cloud.run.v2.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> serviceBuilder_; + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> + serviceBuilder_; /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ public com.google.cloud.run.v2.Service getService() { @@ -565,11 +616,14 @@ public com.google.cloud.run.v2.Service getService() { } } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { @@ -585,14 +639,16 @@ public Builder setService(com.google.cloud.run.v2.Service value) { return this; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setService( - com.google.cloud.run.v2.Service.Builder builderForValue) { + public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); @@ -603,17 +659,20 @@ public Builder setService( return this; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = - com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.Service.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } @@ -625,11 +684,14 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { return this; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearService() { if (serviceBuilder_ == null) { @@ -643,61 +705,75 @@ public Builder clearService() { return this; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? - com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), - getParentForChildren(), - isClean()); + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -705,39 +781,47 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -745,6 +829,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -752,6 +837,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -759,16 +846,19 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, and if the Service does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -776,17 +866,18 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { - + allowMissing_ = 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); } @@ -796,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.UpdateServiceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.UpdateServiceRequest) private static final com.google.cloud.run.v2.UpdateServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.UpdateServiceRequest(); } @@ -810,16 +901,16 @@ public static com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateServiceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateServiceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index 103efd8..6009b7f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -1,51 +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/run/v2/service.proto package com.google.cloud.run.v2; -public interface UpdateServiceRequestOrBuilder extends +public interface UpdateServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ boolean hasService(); /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ com.google.cloud.run.v2.Service getService(); /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -53,6 +85,7 @@ public interface UpdateServiceRequestOrBuilder extends
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java new file mode 100644 index 0000000..5bd17cb --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/vendor_settings.proto + +package com.google.cloud.run.v2; + +public final class VendorSettingsProto { + private VendorSettingsProto() {} + + 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_run_v2_VpcAccess_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionScaling_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/run/v2/vendor_settings.pr" + + "oto\022\023google.cloud.run.v2\032\031google/api/res" + + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + + "ttingsProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_VpcAccess_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VpcAccess_descriptor, + new java.lang.String[] { + "Connector", "Egress", + }); + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, + new java.lang.String[] { + "UseDefault", "BreakglassJustification", "BinauthzMethod", + }); + internal_static_google_cloud_run_v2_RevisionScaling_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionScaling_descriptor, + new java.lang.String[] { + "MinInstanceCount", "MaxInstanceCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java index b57dc82..046d4ca 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * VersionToPath maps a specific version of a secret to a relative file to mount
  * to, relative to VolumeMount's mount_path.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.VersionToPath}
  */
-public final class VersionToPath extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VersionToPath extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VersionToPath)
     VersionToPathOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VersionToPath.newBuilder() to construct.
   private VersionToPath(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VersionToPath() {
     path_ = "";
     version_ = "";
@@ -27,16 +45,15 @@ private VersionToPath() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VersionToPath();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VersionToPath(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,30 +72,32 @@ private VersionToPath(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            path_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            version_ = s;
-            break;
-          }
-          case 24: {
+              path_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            mode_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              version_ = s;
+              break;
+            }
+          case 24:
+            {
+              mode_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -86,34 +105,39 @@ private VersionToPath(
     } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.VersionToPath.class, com.google.cloud.run.v2.VersionToPath.Builder.class);
+            com.google.cloud.run.v2.VersionToPath.class,
+            com.google.cloud.run.v2.VersionToPath.Builder.class);
   }
 
   public static final int PATH_FIELD_NUMBER = 1;
   private volatile java.lang.Object path_;
   /**
+   *
+   *
    * 
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The path. */ @java.lang.Override @@ -122,29 +146,29 @@ 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; } } /** + * + * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -155,12 +179,15 @@ public java.lang.String getPath() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -169,30 +196,30 @@ 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; } } /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; + * * @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 { @@ -203,6 +230,8 @@ public java.lang.String getVersion() { public static final int MODE_FIELD_NUMBER = 3; private int mode_; /** + * + * *
    * Integer octal mode bits to use on this file, must be a value between
    * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -220,6 +249,7 @@ public java.lang.String getVersion() {
    * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -228,6 +258,7 @@ public int getMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +270,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -266,8 +296,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (mode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, mode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,19 +306,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.run.v2.VersionToPath)) { return super.equals(obj); } com.google.cloud.run.v2.VersionToPath other = (com.google.cloud.run.v2.VersionToPath) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getMode() - != other.getMode()) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (getMode() != other.getMode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,97 +338,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VersionToPath parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VersionToPath parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.VersionToPath parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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.run.v2.VersionToPath 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; } /** + * + * *
    * VersionToPath maps a specific version of a secret to a relative file to mount
    * to, relative to VolumeMount's mount_path.
@@ -410,21 +442,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.VersionToPath}
    */
-  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.run.v2.VersionToPath)
       com.google.cloud.run.v2.VersionToPathOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.VersionToPath.class, com.google.cloud.run.v2.VersionToPath.Builder.class);
+              com.google.cloud.run.v2.VersionToPath.class,
+              com.google.cloud.run.v2.VersionToPath.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.VersionToPath.newBuilder()
@@ -432,16 +466,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 +488,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VersionToPath_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_VersionToPath_descriptor;
     }
 
     @java.lang.Override
@@ -476,7 +509,8 @@ public com.google.cloud.run.v2.VersionToPath build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.VersionToPath buildPartial() {
-      com.google.cloud.run.v2.VersionToPath result = new com.google.cloud.run.v2.VersionToPath(this);
+      com.google.cloud.run.v2.VersionToPath result =
+          new com.google.cloud.run.v2.VersionToPath(this);
       result.path_ = path_;
       result.version_ = version_;
       result.mode_ = mode_;
@@ -488,38 +522,39 @@ public com.google.cloud.run.v2.VersionToPath 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.run.v2.VersionToPath) {
-        return mergeFrom((com.google.cloud.run.v2.VersionToPath)other);
+        return mergeFrom((com.google.cloud.run.v2.VersionToPath) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -570,18 +605,20 @@ public Builder mergeFrom(
 
     private java.lang.Object path_ = "";
     /**
+     *
+     *
      * 
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -590,20 +627,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -611,54 +649,61 @@ public java.lang.String getPath() { } } /** + * + * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
      * Required. The relative path of the secret in the container.
      * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -666,19 +711,21 @@ public Builder setPathBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; + * * @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; @@ -687,21 +734,22 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; + * * @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 { @@ -709,64 +757,73 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; + * * @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; } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The Cloud Secret Manager secret version.
      * Can be 'latest' for the latest value or an integer for a specific version.
      * 
* * string version = 2; + * * @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; } - private int mode_ ; + private int mode_; /** + * + * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -784,6 +841,7 @@ public Builder setVersionBytes(
      * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -791,6 +849,8 @@ public int getMode() { return mode_; } /** + * + * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -808,16 +868,19 @@ public int getMode() {
      * 
* * int32 mode = 3; + * * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(int value) { - + mode_ = value; onChanged(); return this; } /** + * + * *
      * Integer octal mode bits to use on this file, must be a value between
      * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -835,17 +898,18 @@ public Builder setMode(int value) {
      * 
* * int32 mode = 3; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = 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); } @@ -855,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VersionToPath) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VersionToPath) private static final com.google.cloud.run.v2.VersionToPath DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VersionToPath(); } @@ -869,16 +933,16 @@ public static com.google.cloud.run.v2.VersionToPath getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VersionToPath parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionToPath(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionToPath parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionToPath(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,6 +957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VersionToPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java index c4ede29..4002f7c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java @@ -1,55 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VersionToPathOrBuilder extends +public interface VersionToPathOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VersionToPath) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Required. The relative path of the secret in the container.
    * 
* * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The Cloud Secret Manager secret version.
    * Can be 'latest' for the latest value or an integer for a specific version.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Integer octal mode bits to use on this file, must be a value between
    * 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
@@ -67,6 +95,7 @@ public interface VersionToPathOrBuilder extends
    * 
* * int32 mode = 3; + * * @return The mode. */ int getMode(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java index ecd8fe5..7440876 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * Volume represents a named volume in a container.
  * 
* * Protobuf type {@code google.cloud.run.v2.Volume} */ -public final class Volume extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Volume extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Volume) VolumeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Volume() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private Volume( 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: { - com.google.cloud.run.v2.SecretVolumeSource.Builder subBuilder = null; - if (volumeTypeCase_ == 2) { - subBuilder = ((com.google.cloud.run.v2.SecretVolumeSource) volumeType_).toBuilder(); + name_ = s; + break; } - volumeType_ = - input.readMessage(com.google.cloud.run.v2.SecretVolumeSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) volumeType_); - volumeType_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.run.v2.SecretVolumeSource.Builder subBuilder = null; + if (volumeTypeCase_ == 2) { + subBuilder = ((com.google.cloud.run.v2.SecretVolumeSource) volumeType_).toBuilder(); + } + volumeType_ = + input.readMessage( + com.google.cloud.run.v2.SecretVolumeSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.SecretVolumeSource) volumeType_); + volumeType_ = subBuilder.buildPartial(); + } + volumeTypeCase_ = 2; + break; } - volumeTypeCase_ = 2; - break; - } - case 26: { - com.google.cloud.run.v2.CloudSqlInstance.Builder subBuilder = null; - if (volumeTypeCase_ == 3) { - subBuilder = ((com.google.cloud.run.v2.CloudSqlInstance) volumeType_).toBuilder(); + case 26: + { + com.google.cloud.run.v2.CloudSqlInstance.Builder subBuilder = null; + if (volumeTypeCase_ == 3) { + subBuilder = ((com.google.cloud.run.v2.CloudSqlInstance) volumeType_).toBuilder(); + } + volumeType_ = + input.readMessage( + com.google.cloud.run.v2.CloudSqlInstance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) volumeType_); + volumeType_ = subBuilder.buildPartial(); + } + volumeTypeCase_ = 3; + break; } - volumeType_ = - input.readMessage(com.google.cloud.run.v2.CloudSqlInstance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.run.v2.CloudSqlInstance) volumeType_); - volumeType_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - volumeTypeCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,35 +123,39 @@ private Volume( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Volume.class, com.google.cloud.run.v2.Volume.Builder.class); } private int volumeTypeCase_ = 0; private java.lang.Object volumeType_; + public enum VolumeTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SECRET(2), CLOUD_SQL_INSTANCE(3), VOLUMETYPE_NOT_SET(0); private final int value; + private VolumeTypeCase(int value) { this.value = value; } @@ -145,31 +171,37 @@ public static VolumeTypeCase valueOf(int value) { public static VolumeTypeCase forNumber(int value) { switch (value) { - case 2: return SECRET; - case 3: return CLOUD_SQL_INSTANCE; - case 0: return VOLUMETYPE_NOT_SET; - default: return null; + case 2: + return SECRET; + case 3: + return CLOUD_SQL_INSTANCE; + case 0: + return VOLUMETYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public VolumeTypeCase - getVolumeTypeCase() { - return VolumeTypeCase.forNumber( - volumeTypeCase_); + public VolumeTypeCase getVolumeTypeCase() { + return VolumeTypeCase.forNumber(volumeTypeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -178,29 +210,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. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -210,12 +242,15 @@ public java.lang.String getName() { public static final int SECRET_FIELD_NUMBER = 2; /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return Whether the secret field is set. */ @java.lang.Override @@ -223,22 +258,27 @@ public boolean hasSecret() { return volumeTypeCase_ == 2; } /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return The secret. */ @java.lang.Override public com.google.cloud.run.v2.SecretVolumeSource getSecret() { if (volumeTypeCase_ == 2) { - return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_; + return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_; } return com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance(); } /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -249,13 +289,15 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() {
   @java.lang.Override
   public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder() {
     if (volumeTypeCase_ == 2) {
-       return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_;
+      return (com.google.cloud.run.v2.SecretVolumeSource) volumeType_;
     }
     return com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance();
   }
 
   public static final int CLOUD_SQL_INSTANCE_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -263,6 +305,7 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return Whether the cloudSqlInstance field is set. */ @java.lang.Override @@ -270,6 +313,8 @@ public boolean hasCloudSqlInstance() { return volumeTypeCase_ == 3; } /** + * + * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -277,16 +322,19 @@ public boolean hasCloudSqlInstance() {
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() { if (volumeTypeCase_ == 3) { - return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_; + return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_; } return com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance(); } /** + * + * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -298,12 +346,13 @@ public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() {
   @java.lang.Override
   public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBuilder() {
     if (volumeTypeCase_ == 3) {
-       return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_;
+      return (com.google.cloud.run.v2.CloudSqlInstance) volumeType_;
     }
     return com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -315,8 +364,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_);
     }
@@ -339,12 +387,14 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (volumeTypeCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.run.v2.SecretVolumeSource) volumeType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.run.v2.SecretVolumeSource) volumeType_);
     }
     if (volumeTypeCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.run.v2.CloudSqlInstance) volumeType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.run.v2.CloudSqlInstance) volumeType_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -354,24 +404,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.run.v2.Volume)) {
       return super.equals(obj);
     }
     com.google.cloud.run.v2.Volume other = (com.google.cloud.run.v2.Volume) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (!getVolumeTypeCase().equals(other.getVolumeTypeCase())) return false;
     switch (volumeTypeCase_) {
       case 2:
-        if (!getSecret()
-            .equals(other.getSecret())) return false;
+        if (!getSecret().equals(other.getSecret())) return false;
         break;
       case 3:
-        if (!getCloudSqlInstance()
-            .equals(other.getCloudSqlInstance())) return false;
+        if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false;
         break;
       case 0:
       default:
@@ -406,116 +453,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.run.v2.Volume parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.run.v2.Volume parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.run.v2.Volume parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume 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.run.v2.Volume parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.cloud.run.v2.Volume parseFrom(com.google.protobuf.CodedInputStream 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.run.v2.Volume 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.run.v2.Volume 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;
   }
   /**
+   *
+   *
    * 
    * Volume represents a named volume in a container.
    * 
* * Protobuf type {@code google.cloud.run.v2.Volume} */ - 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.run.v2.Volume) com.google.cloud.run.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Volume.class, com.google.cloud.run.v2.Volume.Builder.class); } @@ -525,16 +579,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(); @@ -546,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_Volume_descriptor; } @java.lang.Override @@ -592,38 +645,39 @@ public com.google.cloud.run.v2.Volume 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.run.v2.Volume) { - return mergeFrom((com.google.cloud.run.v2.Volume)other); + return mergeFrom((com.google.cloud.run.v2.Volume) other); } else { super.mergeFrom(other); return this; @@ -637,17 +691,20 @@ public Builder mergeFrom(com.google.cloud.run.v2.Volume other) { onChanged(); } switch (other.getVolumeTypeCase()) { - case SECRET: { - mergeSecret(other.getSecret()); - break; - } - case CLOUD_SQL_INSTANCE: { - mergeCloudSqlInstance(other.getCloudSqlInstance()); - break; - } - case VOLUMETYPE_NOT_SET: { - break; - } + case SECRET: + { + mergeSecret(other.getSecret()); + break; + } + case CLOUD_SQL_INSTANCE: + { + mergeCloudSqlInstance(other.getCloudSqlInstance()); + break; + } + case VOLUMETYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -677,12 +734,12 @@ public Builder mergeFrom( } return this; } + private int volumeTypeCase_ = 0; private java.lang.Object volumeType_; - public VolumeTypeCase - getVolumeTypeCase() { - return VolumeTypeCase.forNumber( - volumeTypeCase_); + + public VolumeTypeCase getVolumeTypeCase() { + return VolumeTypeCase.forNumber(volumeTypeCase_); } public Builder clearVolumeType() { @@ -692,21 +749,22 @@ public Builder clearVolumeType() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -715,20 +773,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -736,68 +795,81 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Volume's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> secretBuilder_; + com.google.cloud.run.v2.SecretVolumeSource, + com.google.cloud.run.v2.SecretVolumeSource.Builder, + com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> + secretBuilder_; /** + * + * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return Whether the secret field is set. */ @java.lang.Override @@ -805,12 +877,15 @@ public boolean hasSecret() { return volumeTypeCase_ == 2; } /** + * + * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return The secret. */ @java.lang.Override @@ -828,6 +903,8 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() { } } /** + * + * *
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -849,6 +926,8 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -856,8 +935,7 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
      *
      * .google.cloud.run.v2.SecretVolumeSource secret = 2;
      */
-    public Builder setSecret(
-        com.google.cloud.run.v2.SecretVolumeSource.Builder builderForValue) {
+    public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource.Builder builderForValue) {
       if (secretBuilder_ == null) {
         volumeType_ = builderForValue.build();
         onChanged();
@@ -868,6 +946,8 @@ public Builder setSecret(
       return this;
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -877,10 +957,13 @@ public Builder setSecret(
      */
     public Builder mergeSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       if (secretBuilder_ == null) {
-        if (volumeTypeCase_ == 2 &&
-            volumeType_ != com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance()) {
-          volumeType_ = com.google.cloud.run.v2.SecretVolumeSource.newBuilder((com.google.cloud.run.v2.SecretVolumeSource) volumeType_)
-              .mergeFrom(value).buildPartial();
+        if (volumeTypeCase_ == 2
+            && volumeType_ != com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance()) {
+          volumeType_ =
+              com.google.cloud.run.v2.SecretVolumeSource.newBuilder(
+                      (com.google.cloud.run.v2.SecretVolumeSource) volumeType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           volumeType_ = value;
         }
@@ -896,6 +979,8 @@ public Builder mergeSecret(com.google.cloud.run.v2.SecretVolumeSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -920,6 +1005,8 @@ public Builder clearSecret() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -931,6 +1018,8 @@ public com.google.cloud.run.v2.SecretVolumeSource.Builder getSecretBuilder() {
       return getSecretFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -950,6 +1039,8 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Secret represents a secret that should populate this volume.
      * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -958,27 +1049,38 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
      * .google.cloud.run.v2.SecretVolumeSource secret = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder> 
+            com.google.cloud.run.v2.SecretVolumeSource,
+            com.google.cloud.run.v2.SecretVolumeSource.Builder,
+            com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>
         getSecretFieldBuilder() {
       if (secretBuilder_ == null) {
         if (!(volumeTypeCase_ == 2)) {
           volumeType_ = com.google.cloud.run.v2.SecretVolumeSource.getDefaultInstance();
         }
-        secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.SecretVolumeSource, com.google.cloud.run.v2.SecretVolumeSource.Builder, com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>(
+        secretBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.SecretVolumeSource,
+                com.google.cloud.run.v2.SecretVolumeSource.Builder,
+                com.google.cloud.run.v2.SecretVolumeSourceOrBuilder>(
                 (com.google.cloud.run.v2.SecretVolumeSource) volumeType_,
                 getParentForChildren(),
                 isClean());
         volumeType_ = null;
       }
       volumeTypeCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return secretBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder> cloudSqlInstanceBuilder_;
+            com.google.cloud.run.v2.CloudSqlInstance,
+            com.google.cloud.run.v2.CloudSqlInstance.Builder,
+            com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>
+        cloudSqlInstanceBuilder_;
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -986,6 +1088,7 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder()
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return Whether the cloudSqlInstance field is set. */ @java.lang.Override @@ -993,6 +1096,8 @@ public boolean hasCloudSqlInstance() { return volumeTypeCase_ == 3; } /** + * + * *
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1000,6 +1105,7 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1017,6 +1123,8 @@ public com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance() { } } /** + * + * *
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1039,6 +1147,8 @@ public Builder setCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance valu
       return this;
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1059,6 +1169,8 @@ public Builder setCloudSqlInstance(
       return this;
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1069,10 +1181,13 @@ public Builder setCloudSqlInstance(
      */
     public Builder mergeCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance value) {
       if (cloudSqlInstanceBuilder_ == null) {
-        if (volumeTypeCase_ == 3 &&
-            volumeType_ != com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance()) {
-          volumeType_ = com.google.cloud.run.v2.CloudSqlInstance.newBuilder((com.google.cloud.run.v2.CloudSqlInstance) volumeType_)
-              .mergeFrom(value).buildPartial();
+        if (volumeTypeCase_ == 3
+            && volumeType_ != com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance()) {
+          volumeType_ =
+              com.google.cloud.run.v2.CloudSqlInstance.newBuilder(
+                      (com.google.cloud.run.v2.CloudSqlInstance) volumeType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           volumeType_ = value;
         }
@@ -1088,6 +1203,8 @@ public Builder mergeCloudSqlInstance(com.google.cloud.run.v2.CloudSqlInstance va
       return this;
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1113,6 +1230,8 @@ public Builder clearCloudSqlInstance() {
       return this;
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1125,6 +1244,8 @@ public com.google.cloud.run.v2.CloudSqlInstance.Builder getCloudSqlInstanceBuild
       return getCloudSqlInstanceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1145,6 +1266,8 @@ public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBu
       }
     }
     /**
+     *
+     *
      * 
      * For Cloud SQL volumes, contains the specific instances that should be
      * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -1154,26 +1277,32 @@ public com.google.cloud.run.v2.CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBu
      * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder> 
+            com.google.cloud.run.v2.CloudSqlInstance,
+            com.google.cloud.run.v2.CloudSqlInstance.Builder,
+            com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>
         getCloudSqlInstanceFieldBuilder() {
       if (cloudSqlInstanceBuilder_ == null) {
         if (!(volumeTypeCase_ == 3)) {
           volumeType_ = com.google.cloud.run.v2.CloudSqlInstance.getDefaultInstance();
         }
-        cloudSqlInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.CloudSqlInstance, com.google.cloud.run.v2.CloudSqlInstance.Builder, com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>(
+        cloudSqlInstanceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.CloudSqlInstance,
+                com.google.cloud.run.v2.CloudSqlInstance.Builder,
+                com.google.cloud.run.v2.CloudSqlInstanceOrBuilder>(
                 (com.google.cloud.run.v2.CloudSqlInstance) volumeType_,
                 getParentForChildren(),
                 isClean());
         volumeType_ = null;
       }
       volumeTypeCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return cloudSqlInstanceBuilder_;
     }
+
     @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);
     }
 
@@ -1183,12 +1312,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Volume)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Volume)
   private static final com.google.cloud.run.v2.Volume DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Volume();
   }
@@ -1197,16 +1326,16 @@ public static com.google.cloud.run.v2.Volume getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Volume parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Volume(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Volume parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Volume(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1221,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Volume getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
similarity index 73%
rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
index 6588103..25ad090 100644
--- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
+++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.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/run/v2/k8s.min.proto
 
 package com.google.cloud.run.v2;
 
 /**
+ *
+ *
  * 
  * VolumeMount describes a mounting of a Volume within a container.
  * 
* * Protobuf type {@code google.cloud.run.v2.VolumeMount} */ -public final class VolumeMount extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VolumeMount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VolumeMount) VolumeMountOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VolumeMount.newBuilder() to construct. private VolumeMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VolumeMount() { name_ = ""; mountPath_ = ""; @@ -26,16 +44,15 @@ private VolumeMount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VolumeMount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VolumeMount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private VolumeMount( 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 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mountPath_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mountPath_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private VolumeMount( } 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.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.VolumeMount.class, com.google.cloud.run.v2.VolumeMount.Builder.class); + com.google.cloud.run.v2.VolumeMount.class, + com.google.cloud.run.v2.VolumeMount.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -116,29 +140,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. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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,6 +173,8 @@ public java.lang.String getName() { public static final int MOUNT_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object mountPath_; /** + * + * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -158,6 +184,7 @@ public java.lang.String getName() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ @java.lang.Override @@ -166,14 +193,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; } } /** + * + * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -183,16 +211,15 @@ public java.lang.String getMountPath() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -201,6 +228,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -243,17 +270,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.run.v2.VolumeMount)) { return super.equals(obj); } com.google.cloud.run.v2.VolumeMount other = (com.google.cloud.run.v2.VolumeMount) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -274,118 +299,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VolumeMount parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VolumeMount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.VolumeMount parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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.run.v2.VolumeMount 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; } /** + * + * *
    * VolumeMount describes a mounting of a Volume within a container.
    * 
* * Protobuf type {@code google.cloud.run.v2.VolumeMount} */ - 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.run.v2.VolumeMount) com.google.cloud.run.v2.VolumeMountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.VolumeMount.class, com.google.cloud.run.v2.VolumeMount.Builder.class); + com.google.cloud.run.v2.VolumeMount.class, + com.google.cloud.run.v2.VolumeMount.Builder.class); } // Construct using com.google.cloud.run.v2.VolumeMount.newBuilder() @@ -393,16 +426,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(); @@ -414,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_VolumeMount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_VolumeMount_descriptor; } @java.lang.Override @@ -446,38 +478,39 @@ public com.google.cloud.run.v2.VolumeMount 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.run.v2.VolumeMount) { - return mergeFrom((com.google.cloud.run.v2.VolumeMount)other); + return mergeFrom((com.google.cloud.run.v2.VolumeMount) other); } else { super.mergeFrom(other); return this; @@ -525,18 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -545,20 +580,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -566,54 +602,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. This must match the Name of a Volume.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -621,6 +664,8 @@ public Builder setNameBytes( private java.lang.Object mountPath_ = ""; /** + * + * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -630,13 +675,13 @@ public Builder setNameBytes(
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -645,6 +690,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -654,15 +701,14 @@ public java.lang.String getMountPath() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -670,6 +716,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -679,20 +727,22 @@ public java.lang.String getMountPath() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -702,15 +752,18 @@ public Builder setMountPath(
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** + * + * *
      * Required. Path within the container at which the volume should be mounted.  Must
      * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -720,23 +773,23 @@ public Builder clearMountPath() {
      * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } + @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); } @@ -746,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VolumeMount) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VolumeMount) private static final com.google.cloud.run.v2.VolumeMount DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VolumeMount(); } @@ -760,16 +813,16 @@ public static com.google.cloud.run.v2.VolumeMount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeMount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeMount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeMount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VolumeMount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +837,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VolumeMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java index 5d944ac..c9a4335 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VolumeMountOrBuilder extends +public interface VolumeMountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VolumeMount) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. This must match the Name of a Volume.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -37,10 +60,13 @@ public interface VolumeMountOrBuilder extends
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
    * Required. Path within the container at which the volume should be mounted.  Must
    * not contain ':'. For Cloud SQL volumes, it can be left empty, or must
@@ -50,8 +76,8 @@ public interface VolumeMountOrBuilder extends
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java index 8437d5b..d9311c1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java @@ -1,53 +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/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface VolumeOrBuilder extends +public interface VolumeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Volume) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Volume's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return Whether the secret field is set. */ boolean hasSecret(); /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; + * * @return The secret. */ com.google.cloud.run.v2.SecretVolumeSource getSecret(); /** + * + * *
    * Secret represents a secret that should populate this volume.
    * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
@@ -58,6 +87,8 @@ public interface VolumeOrBuilder extends
   com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder();
 
   /**
+   *
+   *
    * 
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -65,10 +96,13 @@ public interface VolumeOrBuilder extends
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return Whether the cloudSqlInstance field is set. */ boolean hasCloudSqlInstance(); /** + * + * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
@@ -76,10 +110,13 @@ public interface VolumeOrBuilder extends
    * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ com.google.cloud.run.v2.CloudSqlInstance getCloudSqlInstance(); /** + * + * *
    * For Cloud SQL volumes, contains the specific instances that should be
    * mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
index 5cf0764..19365f3 100644
--- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
+++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.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/run/v2/vendor_settings.proto
 
 package com.google.cloud.run.v2;
 
 /**
+ *
+ *
  * 
  * VPC Access settings. For more information on creating a VPC Connector, visit
  * https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.VpcAccess}
  */
-public final class VpcAccess extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VpcAccess extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.VpcAccess)
     VpcAccessOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VpcAccess.newBuilder() to construct.
   private VpcAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VpcAccess() {
     connector_ = "";
     egress_ = 0;
@@ -29,16 +47,15 @@ private VpcAccess() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VpcAccess();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VpcAccess(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,25 +74,27 @@ private VpcAccess(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            connector_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              connector_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            egress_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              egress_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,36 +102,41 @@ private VpcAccess(
     } 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.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.VendorSettingsProto
+        .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
+    return com.google.cloud.run.v2.VendorSettingsProto
+        .internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.VpcAccess.class, com.google.cloud.run.v2.VpcAccess.Builder.class);
+            com.google.cloud.run.v2.VpcAccess.class,
+            com.google.cloud.run.v2.VpcAccess.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Egress options for VPC access.
    * 
* * Protobuf enum {@code google.cloud.run.v2.VpcAccess.VpcEgress} */ - public enum VpcEgress - implements com.google.protobuf.ProtocolMessageEnum { + public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified
      * 
@@ -121,6 +145,8 @@ public enum VpcEgress */ VPC_EGRESS_UNSPECIFIED(0), /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -129,6 +155,8 @@ public enum VpcEgress */ ALL_TRAFFIC(1), /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -140,6 +168,8 @@ public enum VpcEgress ; /** + * + * *
      * Unspecified
      * 
@@ -148,6 +178,8 @@ public enum VpcEgress */ public static final int VPC_EGRESS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -156,6 +188,8 @@ public enum VpcEgress */ public static final int ALL_TRAFFIC_VALUE = 1; /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -164,7 +198,6 @@ public enum VpcEgress */ public static final int PRIVATE_RANGES_ONLY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -189,49 +222,49 @@ public static VpcEgress valueOf(int value) { */ public static VpcEgress forNumber(int value) { switch (value) { - case 0: return VPC_EGRESS_UNSPECIFIED; - case 1: return ALL_TRAFFIC; - case 2: return PRIVATE_RANGES_ONLY; - default: return null; + case 0: + return VPC_EGRESS_UNSPECIFIED; + case 1: + return ALL_TRAFFIC; + case 2: + return PRIVATE_RANGES_ONLY; + 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< - VpcEgress> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VpcEgress findValueByNumber(int number) { - return VpcEgress.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 VpcEgress findValueByNumber(int number) { + return VpcEgress.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.run.v2.VpcAccess.getDescriptor().getEnumTypes().get(0); } private static final VpcEgress[] VALUES = values(); - public static VpcEgress valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VpcEgress 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; @@ -251,12 +284,15 @@ private VpcEgress(int value) { public static final int CONNECTOR_FIELD_NUMBER = 1; private volatile java.lang.Object connector_; /** + * + * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The connector. */ @java.lang.Override @@ -265,30 +301,30 @@ public java.lang.String getConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connector_ = s; return s; } } /** + * + * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for connector. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectorBytes() { + public com.google.protobuf.ByteString getConnectorBytes() { java.lang.Object ref = connector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connector_ = b; return b; } else { @@ -299,31 +335,41 @@ public java.lang.String getConnector() { public static final int EGRESS_FIELD_NUMBER = 2; private int egress_; /** + * + * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The enum numeric value on the wire for egress. */ - @java.lang.Override public int getEgressValue() { + @java.lang.Override + public int getEgressValue() { return egress_; } /** + * + * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The egress. */ - @java.lang.Override public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { + @java.lang.Override + public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.VpcAccess.VpcEgress result = com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); + com.google.cloud.run.v2.VpcAccess.VpcEgress result = + com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); return result == null ? com.google.cloud.run.v2.VpcAccess.VpcEgress.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,8 +381,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(connector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connector_); } @@ -356,8 +401,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connector_); } if (egress_ != com.google.cloud.run.v2.VpcAccess.VpcEgress.VPC_EGRESS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, egress_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, egress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -367,15 +411,14 @@ 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.run.v2.VpcAccess)) { return super.equals(obj); } com.google.cloud.run.v2.VpcAccess other = (com.google.cloud.run.v2.VpcAccess) obj; - if (!getConnector() - .equals(other.getConnector())) return false; + if (!getConnector().equals(other.getConnector())) return false; if (egress_ != other.egress_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -397,97 +440,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.VpcAccess parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.VpcAccess parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.VpcAccess parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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.run.v2.VpcAccess 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; } /** + * + * *
    * VPC Access settings. For more information on creating a VPC Connector, visit
    * https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
@@ -497,21 +546,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.VpcAccess}
    */
-  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.run.v2.VpcAccess)
       com.google.cloud.run.v2.VpcAccessOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.VendorSettingsProto
+          .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
+      return com.google.cloud.run.v2.VendorSettingsProto
+          .internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.VpcAccess.class, com.google.cloud.run.v2.VpcAccess.Builder.class);
+              com.google.cloud.run.v2.VpcAccess.class,
+              com.google.cloud.run.v2.VpcAccess.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.VpcAccess.newBuilder()
@@ -519,16 +570,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();
@@ -540,9 +590,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.VendorSettingsProto.internal_static_google_cloud_run_v2_VpcAccess_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.VendorSettingsProto
+          .internal_static_google_cloud_run_v2_VpcAccess_descriptor;
     }
 
     @java.lang.Override
@@ -572,38 +622,39 @@ public com.google.cloud.run.v2.VpcAccess 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.run.v2.VpcAccess) {
-        return mergeFrom((com.google.cloud.run.v2.VpcAccess)other);
+        return mergeFrom((com.google.cloud.run.v2.VpcAccess) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -650,19 +701,21 @@ public Builder mergeFrom(
 
     private java.lang.Object connector_ = "";
     /**
+     *
+     *
      * 
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The connector. */ public java.lang.String getConnector() { java.lang.Object ref = connector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connector_ = s; return s; @@ -671,21 +724,22 @@ public java.lang.String getConnector() { } } /** + * + * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for connector. */ - public com.google.protobuf.ByteString - getConnectorBytes() { + public com.google.protobuf.ByteString getConnectorBytes() { java.lang.Object ref = connector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connector_ = b; return b; } else { @@ -693,57 +747,64 @@ public java.lang.String getConnector() { } } /** + * + * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @param value The connector to set. * @return This builder for chaining. */ - public Builder setConnector( - java.lang.String value) { + public Builder setConnector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connector_ = value; onChanged(); return this; } /** + * + * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearConnector() { - + connector_ = getDefaultInstance().getConnector(); onChanged(); return this; } /** + * + * *
      * VPC Access connector name.
      * Format: projects/{project}/locations/{location}/connectors/{connector}
      * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for connector to set. * @return This builder for chaining. */ - public Builder setConnectorBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connector_ = value; onChanged(); return this; @@ -751,51 +812,65 @@ public Builder setConnectorBytes( private int egress_ = 0; /** + * + * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The enum numeric value on the wire for egress. */ - @java.lang.Override public int getEgressValue() { + @java.lang.Override + public int getEgressValue() { return egress_; } /** + * + * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @param value The enum numeric value on the wire for egress to set. * @return This builder for chaining. */ public Builder setEgressValue(int value) { - + egress_ = value; onChanged(); return this; } /** + * + * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The egress. */ @java.lang.Override public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.VpcAccess.VpcEgress result = com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); + com.google.cloud.run.v2.VpcAccess.VpcEgress result = + com.google.cloud.run.v2.VpcAccess.VpcEgress.valueOf(egress_); return result == null ? com.google.cloud.run.v2.VpcAccess.VpcEgress.UNRECOGNIZED : result; } /** + * + * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @param value The egress to set. * @return This builder for chaining. */ @@ -803,28 +878,31 @@ public Builder setEgress(com.google.cloud.run.v2.VpcAccess.VpcEgress value) { if (value == null) { throw new NullPointerException(); } - + egress_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Traffic VPC egress settings.
      * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return This builder for chaining. */ public Builder clearEgress() { - + egress_ = 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); } @@ -834,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.VpcAccess) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.VpcAccess) private static final com.google.cloud.run.v2.VpcAccess DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.VpcAccess(); } @@ -848,16 +926,16 @@ public static com.google.cloud.run.v2.VpcAccess getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcAccess parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcAccess(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcAccess parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcAccess(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VpcAccess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java rename to proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java index a531dc7..76469f4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java @@ -1,49 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; -public interface VpcAccessOrBuilder extends +public interface VpcAccessOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.VpcAccess) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The connector. */ java.lang.String getConnector(); /** + * + * *
    * VPC Access connector name.
    * Format: projects/{project}/locations/{location}/connectors/{connector}
    * 
* * string connector = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for connector. */ - com.google.protobuf.ByteString - getConnectorBytes(); + com.google.protobuf.ByteString getConnectorBytes(); /** + * + * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The enum numeric value on the wire for egress. */ int getEgressValue(); /** + * + * *
    * Traffic VPC egress settings.
    * 
* * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * * @return The egress. */ com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress(); diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto rename to proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java rename to samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java rename to samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java rename to samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java From 206dd6e187db3bf228af64773b28ee968e54bb71 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 21:00:58 +0000 Subject: [PATCH 3/4] deps: adding gax-httpjson --- google-cloud-run/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-run/pom.xml b/google-cloud-run/pom.xml index 4f84155..846d532 100644 --- a/google-cloud-run/pom.xml +++ b/google-cloud-run/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -81,12 +85,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From a1aff51a359616a0005d3732c373fa4e4b23e224 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 21:02:59 +0000 Subject: [PATCH 4/4] =?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 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3937952..eeccc93 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-run - 0.2.0 + 0.2.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.2.0' +implementation 'com.google.cloud:google-cloud-run:0.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.2.1" ``` ## Authentication