From ef667f888698ab33794d89c1156c685c79c207d6 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 19 Apr 2022 21:29:23 +0000 Subject: [PATCH 1/3] feat: AuditConfig for IAM v1 PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 --- .../google/cloud/run/v2/RevisionsGrpc.java | 577 --- .../com/google/cloud/run/v2/ServicesGrpc.java | 1136 ------ .../google/cloud/run/v2/RevisionsClient.java | 16 +- .../cloud/run/v2/RevisionsSettings.java | 7 +- .../google/cloud/run/v2/ServicesClient.java | 18 +- .../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 + .../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 .../cloud/run/v2/RevisionsClientTest.java | 0 .../cloud/run/v2/ServicesClientTest.java | 6 + .../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 | 1686 +++----- .../cloud/run/v2/ConditionOrBuilder.java | 101 +- .../google/cloud/run/v2/ConditionProto.java | 106 + .../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 | 53 +- .../com/google/cloud/run/v2/Revision.java | 2975 ++++++-------- .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 349 +- .../google/cloud/run/v2/RevisionProto.java | 219 ++ .../google/cloud/run/v2/RevisionScaling.java | 290 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1684 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 183 +- .../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 | 429 +-- .../com/google/cloud/run/v2/ServiceProto.java | 281 ++ .../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 | 517 +-- .../run/v2/UpdateServiceRequestOrBuilder.java | 49 +- .../cloud/run/v2/VendorSettingsProto.java | 97 + .../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 .../google/cloud/run/v2/ConditionProto.java | 131 - .../run/v2/GetRevisionRequestOrBuilder.java | 58 - .../run/v2/GetServiceRequestOrBuilder.java | 56 - .../com/google/cloud/run/v2/K8sMinProto.java | 252 -- .../google/cloud/run/v2/RevisionProto.java | 265 -- .../cloud/run/v2/RevisionTemplateProto.java | 137 - .../com/google/cloud/run/v2/ServiceProto.java | 331 -- .../cloud/run/v2/TrafficTargetProto.java | 97 - .../cloud/run/v2/VendorSettingsProto.java | 114 - 113 files changed, 11610 insertions(+), 18436 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 (97%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java (96%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesClient.java (98%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/ServicesSettings.java (97%) 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%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java (98%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java (99%) 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%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java (100%) rename {google-cloud-run => owl-bot-staging/v2/google-cloud-run}/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java (99%) 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 (72%) 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 (77%) 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 (86%) 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 (69%) 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 (69%) 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 (68%) 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 (65%) 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 (65%) 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 (71%) 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 (71%) 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 (79%) 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 (70%) 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 (72%) 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%) 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 97% 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 f00635b..30549ca 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 @@ -58,13 +58,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. *
* @@ -552,10 +552,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( @@ -605,10 +602,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 96% 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 5dc170f..113e42b 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 @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.RevisionsStubSettings; @@ -43,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/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 98% 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 199b19e..c47f9f8 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 @@ -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. *
* @@ -831,6 +831,7 @@ public final UnaryCallable getIamPolicyCallable() { * SetIamPolicyRequest.newBuilder() * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Policy response = servicesClient.setIamPolicy(request); * } @@ -855,6 +856,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * SetIamPolicyRequest.newBuilder() * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = servicesClient.setIamPolicyCallable().futureCall(request); * // Do something. @@ -951,10 +953,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( @@ -1003,10 +1002,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 97% 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 5c4bf58..66e8db2 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 @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.ServicesStubSettings; @@ -48,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/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 e625f97..653d041 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 @@ -36,6 +36,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 d408f9a..4be1b7c 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 @@ -43,6 +43,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/RevisionsStub.java b/owl-bot-staging/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java similarity index 100% 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 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 98% 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 a8c03cc..a9b3a5c 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 @@ -66,9 +66,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/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 100% 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 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 99% 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 ff84c65..d54deac 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 @@ -73,9 +73,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/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/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/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 99% 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 index ad413d6..315c145 100644 --- 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 @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; 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; @@ -713,6 +714,7 @@ public void getIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockServices.addResponse(expectedResponse); @@ -762,6 +764,7 @@ public void setIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockServices.addResponse(expectedResponse); @@ -770,6 +773,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Policy actualResponse = client.setIamPolicy(request); @@ -781,6 +785,7 @@ public void setIamPolicyTest() throws Exception { Assert.assertEquals(request.getResource(), actualRequest.getResource()); Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -797,6 +802,7 @@ public void setIamPolicyExceptionTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); client.setIamPolicy(request); Assert.fail("No exception raised"); 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 72% 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 5836ff5..b557dfc 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,64 +53,57 @@ private BinaryAuthorization( case 0: done = true; break; - case 8: - { - binauthzMethodCase_ = 1; - binauthzMethod_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { + binauthzMethodCase_ = 1; + binauthzMethod_ = input.readBool(); + 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) { throw e.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; } @@ -143,35 +119,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 @@ -179,15 +150,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 @@ -201,8 +169,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.
@@ -211,7 +177,6 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; - * * @return The breakglassJustification. */ @java.lang.Override @@ -220,15 +185,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.
@@ -237,15 +201,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 { @@ -254,7 +219,6 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,9 +230,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_); @@ -283,9 +249,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_); @@ -298,19 +264,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: @@ -331,7 +298,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: @@ -341,127 +309,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() @@ -469,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 +449,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 @@ -510,8 +470,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_; } @@ -525,39 +484,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; @@ -571,15 +529,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(); @@ -609,12 +565,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() { @@ -624,31 +580,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() { @@ -658,15 +609,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. */ @@ -677,15 +625,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() { @@ -699,8 +644,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.
@@ -709,13 +652,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; @@ -724,8 +667,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.
@@ -734,14 +675,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 { @@ -749,8 +691,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.
@@ -759,22 +699,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.
@@ -783,18 +721,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.
@@ -803,23 +738,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); } @@ -829,12 +764,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(); } @@ -843,16 +778,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; @@ -867,4 +802,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 581738a..6eabba6 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() { connections_ = 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,29 +54,29 @@ private CloudSqlInstance( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connections_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connections_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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)) { connections_ = connections_.getUnmodifiableView(); @@ -102,27 +85,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 CONNECTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList connections_; /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -132,15 +110,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string connections = 1; - * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList getConnectionsList() { + public com.google.protobuf.ProtocolStringList + getConnectionsList() { return connections_; } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -150,15 +126,12 @@ public com.google.protobuf.ProtocolStringList getConnectionsList() {
    * 
* * repeated string connections = 1; - * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -168,7 +141,6 @@ public int getConnectionsCount() {
    * 
* * repeated string connections = 1; - * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -176,8 +148,6 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -187,16 +157,15 @@ public java.lang.String getConnections(int index) {
    * 
* * repeated string connections = 1; - * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString getConnectionsBytes(int index) { + public com.google.protobuf.ByteString + getConnectionsBytes(int index) { return connections_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +177,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 < connections_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connections_.getRaw(i)); } @@ -237,14 +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.CloudSqlInstance)) { return super.equals(obj); } com.google.cloud.run.v2.CloudSqlInstance other = (com.google.cloud.run.v2.CloudSqlInstance) obj; - if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,127 +236,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() @@ -393,15 +355,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(); @@ -411,9 +374,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 @@ -432,8 +395,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)) { connections_ = connections_.getUnmodifiableView(); @@ -448,39 +410,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; @@ -527,21 +488,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList connections_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList connections_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connections_ = new com.google.protobuf.LazyStringArrayList(connections_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -551,15 +507,13 @@ private void ensureConnectionsIsMutable() {
      * 
* * repeated string connections = 1; - * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList getConnectionsList() { + public com.google.protobuf.ProtocolStringList + getConnectionsList() { return connections_.getUnmodifiableView(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -569,15 +523,12 @@ public com.google.protobuf.ProtocolStringList getConnectionsList() {
      * 
* * repeated string connections = 1; - * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -587,7 +538,6 @@ public int getConnectionsCount() {
      * 
* * repeated string connections = 1; - * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -595,8 +545,6 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -606,16 +554,14 @@ public java.lang.String getConnections(int index) {
      * 
* * repeated string connections = 1; - * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString getConnectionsBytes(int index) { + public com.google.protobuf.ByteString + getConnectionsBytes(int index) { return connections_.getByteString(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -625,23 +571,21 @@ public com.google.protobuf.ByteString getConnectionsBytes(int index) {
      * 
* * repeated string connections = 1; - * * @param index The index to set the value at. * @param value The connections to set. * @return This builder for chaining. */ - public Builder setConnections(int index, java.lang.String value) { + public Builder setConnections( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.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
@@ -651,22 +595,20 @@ public Builder setConnections(int index, java.lang.String value) {
      * 
* * repeated string connections = 1; - * * @param value The connections to add. * @return This builder for chaining. */ - public Builder addConnections(java.lang.String value) { + public Builder addConnections( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.add(value); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -676,19 +618,18 @@ public Builder addConnections(java.lang.String value) {
      * 
* * repeated string connections = 1; - * * @param values The connections to add. * @return This builder for chaining. */ - public Builder addAllConnections(java.lang.Iterable values) { + public Builder addAllConnections( + java.lang.Iterable values) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -698,7 +639,6 @@ public Builder addAllConnections(java.lang.Iterable values) {
      * 
* * repeated string connections = 1; - * * @return This builder for chaining. */ public Builder clearConnections() { @@ -708,8 +648,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -719,23 +657,23 @@ public Builder clearConnections() {
      * 
* * repeated string connections = 1; - * * @param value The bytes of the connections to add. * @return This builder for chaining. */ - public Builder addConnectionsBytes(com.google.protobuf.ByteString value) { + public Builder addConnectionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureConnectionsIsMutable(); connections_.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); } @@ -745,12 +683,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(); } @@ -759,16 +697,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; @@ -783,4 +721,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 262b0b0..cb06079 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 connections = 1; - * * @return A list containing the connections. */ - java.util.List getConnectionsList(); + java.util.List + getConnectionsList(); /** - * - * *
    * 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 connections = 1; - * * @return The count of connections. */ int getConnectionsCount(); /** - * - * *
    * 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 connections = 1; - * * @param index The index of the element to return. * @return The connections at the given index. */ java.lang.String getConnections(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 connections = 1; - * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - com.google.protobuf.ByteString getConnectionsBytes(int index); + com.google.protobuf.ByteString + getConnectionsBytes(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 77% 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 db439ec..790c5fe 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,131 +56,115 @@ 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 56: - { - int rawValue = input.readEnum(); - reasonsCase_ = 7; - reasons_ = rawValue; - break; - } - case 64: - { - int rawValue = input.readEnum(); - reasonsCase_ = 8; - 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 56: { + int rawValue = input.readEnum(); + reasonsCase_ = 7; + reasons_ = rawValue; + break; + } + case 64: { + int rawValue = input.readEnum(); + reasonsCase_ = 8; + 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) { throw e.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.
      * 
@@ -206,8 +173,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -216,8 +181,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_PENDING(1), /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -226,8 +189,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_RECONCILING(2), /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -236,8 +197,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_FAILED(3), /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -249,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -259,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -269,8 +224,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_PENDING_VALUE = 1; /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -279,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_RECONCILING_VALUE = 2; /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -289,8 +240,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_FAILED_VALUE = 3; /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -299,6 +248,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( @@ -323,53 +273,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; + 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() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.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; @@ -387,18 +335,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
      * 
@@ -407,8 +352,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Error severity.
      * 
@@ -417,8 +360,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(1), /** - * - * *
      * Warning severity.
      * 
@@ -427,8 +368,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
      * Info severity.
      * 
@@ -440,8 +379,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified severity
      * 
@@ -450,8 +387,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Error severity.
      * 
@@ -460,8 +395,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 1; /** - * - * *
      * Warning severity.
      * 
@@ -470,8 +403,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
      * Info severity.
      * 
@@ -480,6 +411,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( @@ -504,51 +436,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; @@ -566,18 +497,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.
      * 
@@ -586,8 +514,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ COMMON_REASON_UNDEFINED(0), /** - * - * *
      * Reason unknown. Further details will be in message.
      * 
@@ -596,8 +522,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(1), /** - * - * *
      * The internal route is missing.
      * 
@@ -606,8 +530,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ROUTE_MISSING(2), /** - * - * *
      * Revision creation process failed.
      * 
@@ -616,8 +538,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_FAILED(3), /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -626,8 +546,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ PROGRESS_DEADLINE_EXCEEDED(4), /** - * - * *
      * There was a build error.
      * 
@@ -636,8 +554,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ BUILD_STEP_FAILED(5), /** - * - * *
      * The container image path is incorrect.
      * 
@@ -646,8 +562,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_MISSING(6), /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -656,8 +570,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_PERMISSION_DENIED(7), /** - * - * *
      * Container image is not authorized by policy.
      * 
@@ -666,8 +578,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -676,8 +586,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** - * - * *
      * Insufficient permissions on encryption key.
      * 
@@ -686,8 +594,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** - * - * *
      * Permission check on encryption key failed.
      * 
@@ -696,8 +602,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_CHECK_FAILED(11), /** - * - * *
      * At least one Access check on secrets failed.
      * 
@@ -706,8 +610,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ SECRETS_ACCESS_CHECK_FAILED(12), /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -716,8 +618,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ WAITING_FOR_OPERATION(13), /** - * - * *
      * System will retry immediately.
      * 
@@ -726,8 +626,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ IMMEDIATE_RETRY(14), /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -739,8 +637,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -749,8 +645,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.
      * 
@@ -759,8 +653,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 1; /** - * - * *
      * The internal route is missing.
      * 
@@ -769,8 +661,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUTE_MISSING_VALUE = 2; /** - * - * *
      * Revision creation process failed.
      * 
@@ -779,8 +669,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_FAILED_VALUE = 3; /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -789,8 +677,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** - * - * *
      * There was a build error.
      * 
@@ -799,8 +685,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BUILD_STEP_FAILED_VALUE = 5; /** - * - * *
      * The container image path is incorrect.
      * 
@@ -809,8 +693,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_MISSING_VALUE = 6; /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -819,8 +701,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.
      * 
@@ -829,8 +709,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -839,8 +717,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.
      * 
@@ -849,8 +725,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.
      * 
@@ -859,8 +733,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.
      * 
@@ -869,8 +741,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -879,8 +749,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** - * - * *
      * System will retry immediately.
      * 
@@ -889,8 +757,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -899,6 +765,7 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTPONED_RETRY_VALUE = 15; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -923,75 +790,62 @@ 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 2: - return ROUTE_MISSING; - case 3: - return REVISION_FAILED; - case 4: - return PROGRESS_DEADLINE_EXCEEDED; - case 5: - return BUILD_STEP_FAILED; - 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; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return COMMON_REASON_UNDEFINED; + case 1: return UNKNOWN; + case 2: return ROUTE_MISSING; + case 3: return REVISION_FAILED; + case 4: return PROGRESS_DEADLINE_EXCEEDED; + case 5: return BUILD_STEP_FAILED; + 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; + 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; @@ -1009,8 +863,6 @@ private CommonReason(int value) { } /** - * - * *
    * Reasons applicable to internal resources not exposed to users. These will
    * surface in Service.conditions, and could be useful for further diagnosis.
@@ -1018,10 +870,9 @@ private CommonReason(int value) {
    *
    * Protobuf enum {@code google.cloud.run.v2.Condition.InternalReason}
    */
-  public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InternalReason
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1030,8 +881,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ INTERNAL_REASON_UNDEFINED(0), /** - * - * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -1040,8 +889,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ CONFLICTING_REVISION_NAME(1), /** - * - * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -1050,8 +897,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_MISSING(2), /** - * - * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -1060,8 +905,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ CONFIGURATION_MISSING(3), /** - * - * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -1070,8 +913,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ ASSIGNING_TRAFFIC(4), /** - * - * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -1080,8 +921,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING_INGRESS_TRAFFIC_ALLOWED(5), /** - * - * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -1090,8 +929,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_ORG_POLICY_VIOLATION(6), /** - * - * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -1103,8 +940,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -1113,8 +948,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -1123,8 +956,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONFLICTING_REVISION_NAME_VALUE = 1; /** - * - * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -1133,8 +964,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_MISSING_VALUE = 2; /** - * - * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -1143,8 +972,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONFIGURATION_MISSING_VALUE = 3; /** - * - * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -1153,8 +980,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ASSIGNING_TRAFFIC_VALUE = 4; /** - * - * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -1163,8 +988,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_INGRESS_TRAFFIC_ALLOWED_VALUE = 5; /** - * - * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -1173,8 +996,6 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_ORG_POLICY_VIOLATION_VALUE = 6; /** - * - * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -1183,6 +1004,7 @@ public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLING_GCFV2_URI_SUPPORT_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1207,59 +1029,54 @@ public static InternalReason valueOf(int value) { */ public static InternalReason forNumber(int value) { switch (value) { - case 0: - return INTERNAL_REASON_UNDEFINED; - case 1: - return CONFLICTING_REVISION_NAME; - case 2: - return REVISION_MISSING; - case 3: - return CONFIGURATION_MISSING; - case 4: - return ASSIGNING_TRAFFIC; - case 5: - return UPDATING_INGRESS_TRAFFIC_ALLOWED; - case 6: - return REVISION_ORG_POLICY_VIOLATION; - case 7: - return ENABLING_GCFV2_URI_SUPPORT; - default: - return null; + case 0: return INTERNAL_REASON_UNDEFINED; + case 1: return CONFLICTING_REVISION_NAME; + case 2: return REVISION_MISSING; + case 3: return CONFIGURATION_MISSING; + case 4: return ASSIGNING_TRAFFIC; + case 5: return UPDATING_INGRESS_TRAFFIC_ALLOWED; + case 6: return REVISION_ORG_POLICY_VIOLATION; + case 7: return ENABLING_GCFV2_URI_SUPPORT; + 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< + InternalReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InternalReason findValueByNumber(int number) { + return InternalReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InternalReason findValueByNumber(int number) { - return InternalReason.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 InternalReason[] VALUES = values(); - public static InternalReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static InternalReason 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; @@ -1277,18 +1094,15 @@ private InternalReason(int value) { } /** - * - * *
    * Reasons specific to DomainMapping resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.DomainMappingReason} */ - public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEnum { + public enum DomainMappingReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -1297,8 +1111,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ DOMAIN_MAPPING_REASON_UNDEFINED(0), /** - * - * *
      * Internal route is not yet ready.
      * 
@@ -1307,8 +1119,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ ROUTE_NOT_READY(1), /** - * - * *
      * Insufficient permissions.
      * 
@@ -1317,8 +1127,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ PERMISSION_DENIED(2), /** - * - * *
      * Certificate already exists.
      * 
@@ -1327,8 +1135,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ CERTIFICATE_ALREADY_EXISTS(3), /** - * - * *
      * Mapping already exists.
      * 
@@ -1337,8 +1143,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ MAPPING_ALREADY_EXISTS(4), /** - * - * *
      * Certificate issuance pending.
      * 
@@ -1347,8 +1151,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ CERTIFICATE_PENDING(5), /** - * - * *
      * Certificate issuance failed.
      * 
@@ -1360,8 +1162,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * Default value.
      * 
@@ -1370,8 +1170,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int DOMAIN_MAPPING_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Internal route is not yet ready.
      * 
@@ -1380,8 +1178,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int ROUTE_NOT_READY_VALUE = 1; /** - * - * *
      * Insufficient permissions.
      * 
@@ -1390,8 +1186,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int PERMISSION_DENIED_VALUE = 2; /** - * - * *
      * Certificate already exists.
      * 
@@ -1400,8 +1194,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int CERTIFICATE_ALREADY_EXISTS_VALUE = 3; /** - * - * *
      * Mapping already exists.
      * 
@@ -1410,8 +1202,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int MAPPING_ALREADY_EXISTS_VALUE = 4; /** - * - * *
      * Certificate issuance pending.
      * 
@@ -1420,8 +1210,6 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int CERTIFICATE_PENDING_VALUE = 5; /** - * - * *
      * Certificate issuance failed.
      * 
@@ -1430,6 +1218,7 @@ public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEn */ public static final int CERTIFICATE_FAILED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1454,22 +1243,14 @@ public static DomainMappingReason valueOf(int value) { */ public static DomainMappingReason forNumber(int value) { switch (value) { - case 0: - return DOMAIN_MAPPING_REASON_UNDEFINED; - case 1: - return ROUTE_NOT_READY; - case 2: - return PERMISSION_DENIED; - case 3: - return CERTIFICATE_ALREADY_EXISTS; - case 4: - return MAPPING_ALREADY_EXISTS; - case 5: - return CERTIFICATE_PENDING; - case 6: - return CERTIFICATE_FAILED; - default: - return null; + case 0: return DOMAIN_MAPPING_REASON_UNDEFINED; + case 1: return ROUTE_NOT_READY; + case 2: return PERMISSION_DENIED; + case 3: return CERTIFICATE_ALREADY_EXISTS; + case 4: return MAPPING_ALREADY_EXISTS; + case 5: return CERTIFICATE_PENDING; + case 6: return CERTIFICATE_FAILED; + default: return null; } } @@ -1477,28 +1258,28 @@ public static DomainMappingReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DomainMappingReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DomainMappingReason findValueByNumber(int number) { + return DomainMappingReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DomainMappingReason findValueByNumber(int number) { - return DomainMappingReason.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); } @@ -1507,7 +1288,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DomainMappingReason 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; @@ -1525,18 +1307,15 @@ private DomainMappingReason(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.
      * 
@@ -1545,8 +1324,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_REASON_UNDEFINED(0), /** - * - * *
      * Revision in Pending state.
      * 
@@ -1555,8 +1332,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -1565,8 +1340,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RESERVE(2), /** - * - * *
      * Revision is Retired.
      * 
@@ -1575,8 +1348,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRED(3), /** - * - * *
      * Revision is being retired.
      * 
@@ -1585,8 +1356,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRING(4), /** - * - * *
      * Revision is being recreated.
      * 
@@ -1595,8 +1364,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RECREATING(5), /** - * - * *
      * There was a health check error.
      * 
@@ -1605,8 +1372,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.
@@ -1616,8 +1381,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
@@ -1628,8 +1391,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
-     *
-     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1638,8 +1399,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
@@ -1650,8 +1409,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
@@ -1664,8 +1421,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1674,8 +1429,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Revision in Pending state.
      * 
@@ -1684,8 +1437,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -1694,8 +1445,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESERVE_VALUE = 2; /** - * - * *
      * Revision is Retired.
      * 
@@ -1704,8 +1453,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRED_VALUE = 3; /** - * - * *
      * Revision is being retired.
      * 
@@ -1714,8 +1461,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRING_VALUE = 4; /** - * - * *
      * Revision is being recreated.
      * 
@@ -1724,8 +1469,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECREATING_VALUE = 5; /** - * - * *
      * There was a health check error.
      * 
@@ -1734,8 +1477,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.
@@ -1745,8 +1486,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
@@ -1757,8 +1496,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.
      * 
@@ -1767,8 +1504,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
@@ -1779,8 +1514,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
@@ -1790,6 +1523,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(
@@ -1814,67 +1548,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(5);
     }
 
     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;
@@ -1892,18 +1617,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.
      * 
@@ -1912,8 +1634,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION_REASON_UNDEFINED(0), /** - * - * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1922,8 +1642,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.
@@ -1936,8 +1654,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1946,8 +1662,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.
      * 
@@ -1956,8 +1670,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.
@@ -1967,6 +1679,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(
@@ -1991,42 +1704,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(6);
     }
 
@@ -2035,7 +1745,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;
@@ -2054,10 +1765,8 @@ 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),
     INTERNAL_REASON(7),
@@ -2066,7 +1775,6 @@ public enum ReasonsCase
     EXECUTION_REASON(11),
     REASONS_NOT_SET(0);
     private final int value;
-
     private ReasonsCase(int value) {
       this.value = value;
     }
@@ -2082,37 +1790,29 @@ public static ReasonsCase valueOf(int value) {
 
     public static ReasonsCase forNumber(int value) {
       switch (value) {
-        case 6:
-          return REASON;
-        case 7:
-          return INTERNAL_REASON;
-        case 8:
-          return DOMAIN_MAPPING_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 7: return INTERNAL_REASON;
+        case 8: return DOMAIN_MAPPING_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:
@@ -2122,7 +1822,6 @@ public ReasonsCase getReasonsCase() {
    * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -2131,15 +1830,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:
@@ -2149,15 +1847,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 { @@ -2168,50 +1867,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 @@ -2220,29 +1907,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 { @@ -2253,14 +1940,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 @@ -2268,25 +1952,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.
    * 
@@ -2301,63 +1978,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() { @@ -2367,21 +2029,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; @@ -2389,28 +2048,22 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int INTERNAL_REASON_FIELD_NUMBER = 7; /** - * - * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return Whether the internalReason field is set. */ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** - * - * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The enum numeric value on the wire for internalReason. */ public int getInternalReasonValue() { @@ -2420,52 +2073,41 @@ public int getInternalReasonValue() { return 0; } /** - * - * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The internalReason. */ public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = - com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } public static final int DOMAIN_MAPPING_REASON_FIELD_NUMBER = 8; /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return Whether the domainMappingReason field is set. */ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The enum numeric value on the wire for domainMappingReason. */ public int getDomainMappingReasonValue() { @@ -2475,53 +2117,41 @@ public int getDomainMappingReasonValue() { return 0; } /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The domainMappingReason. */ public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = - com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } 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() { @@ -2531,52 +2161,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() { @@ -2586,30 +2205,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; @@ -2621,7 +2234,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_); } @@ -2665,36 +2279,39 @@ 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_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(7, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(8, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ((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; @@ -2704,37 +2321,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.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 7: - if (getInternalReasonValue() != other.getInternalReasonValue()) return false; + if (getInternalReasonValue() + != other.getInternalReasonValue()) return false; break; case 8: - if (getDomainMappingReasonValue() != other.getDomainMappingReasonValue()) return false; + if (getDomainMappingReasonValue() + != other.getDomainMappingReasonValue()) 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: @@ -2791,126 +2416,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() @@ -2918,15 +2535,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(); @@ -2950,9 +2568,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 @@ -3005,39 +2623,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; @@ -3064,35 +2681,29 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: - { - setReasonValue(other.getReasonValue()); - break; - } - case INTERNAL_REASON: - { - setInternalReasonValue(other.getInternalReasonValue()); - break; - } - case DOMAIN_MAPPING_REASON: - { - setDomainMappingReasonValue(other.getDomainMappingReasonValue()); - 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 INTERNAL_REASON: { + setInternalReasonValue(other.getInternalReasonValue()); + break; + } + case DOMAIN_MAPPING_REASON: { + setDomainMappingReasonValue(other.getDomainMappingReasonValue()); + 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(); @@ -3122,12 +2733,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() { @@ -3137,10 +2748,9 @@ public Builder clearReasons() { return this; } + private java.lang.Object type_ = ""; /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -3150,13 +2760,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; @@ -3165,8 +2775,6 @@ public java.lang.String getType() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -3176,14 +2784,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 { @@ -3191,8 +2800,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -3202,22 +2809,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:
@@ -3227,18 +2832,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:
@@ -3248,16 +2850,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; @@ -3265,65 +2867,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. */ @@ -3331,24 +2919,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; @@ -3356,20 +2941,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; @@ -3378,21 +2961,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 { @@ -3400,61 +2982,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; @@ -3462,47 +3037,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.
      * 
@@ -3523,15 +3085,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(); @@ -3542,8 +3103,6 @@ public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3554,9 +3113,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; } @@ -3568,8 +3125,6 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3588,8 +3143,6 @@ public Builder clearLastTransitionTime() { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3597,13 +3150,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.
      * 
@@ -3614,14 +3165,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.
      * 
@@ -3629,17 +3177,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_; @@ -3647,65 +3192,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. */ @@ -3713,38 +3244,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 @@ -3752,14 +3277,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 @@ -3770,14 +3292,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. */ @@ -3788,37 +3307,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. */ @@ -3832,14 +3343,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() { @@ -3852,14 +3360,11 @@ public Builder clearReason() { } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return Whether the internalReason field is set. */ @java.lang.Override @@ -3867,14 +3372,11 @@ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The enum numeric value on the wire for internalReason. */ @java.lang.Override @@ -3885,14 +3387,11 @@ public int getInternalReasonValue() { return 0; } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @param value The enum numeric value on the wire for internalReason to set. * @return This builder for chaining. */ @@ -3903,37 +3402,29 @@ public Builder setInternalReasonValue(int value) { return this; } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The internalReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = - com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @param value The internalReason to set. * @return This builder for chaining. */ @@ -3947,14 +3438,11 @@ public Builder setInternalReason(com.google.cloud.run.v2.Condition.InternalReaso return this; } /** - * - * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return This builder for chaining. */ public Builder clearInternalReason() { @@ -3967,14 +3455,11 @@ public Builder clearInternalReason() { } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return Whether the domainMappingReason field is set. */ @java.lang.Override @@ -3982,14 +3467,11 @@ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The enum numeric value on the wire for domainMappingReason. */ @java.lang.Override @@ -4000,14 +3482,11 @@ public int getDomainMappingReasonValue() { return 0; } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @param value The enum numeric value on the wire for domainMappingReason to set. * @return This builder for chaining. */ @@ -4018,43 +3497,33 @@ public Builder setDomainMappingReasonValue(int value) { return this; } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The domainMappingReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = - com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null - ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED - : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @param value The domainMappingReason to set. * @return This builder for chaining. */ - public Builder setDomainMappingReason( - com.google.cloud.run.v2.Condition.DomainMappingReason value) { + public Builder setDomainMappingReason(com.google.cloud.run.v2.Condition.DomainMappingReason value) { if (value == null) { throw new NullPointerException(); } @@ -4064,14 +3533,11 @@ public Builder setDomainMappingReason( return this; } /** - * - * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return This builder for chaining. */ public Builder clearDomainMappingReason() { @@ -4084,14 +3550,11 @@ public Builder clearDomainMappingReason() { } /** - * - * *
      * 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 @@ -4099,14 +3562,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 @@ -4117,14 +3577,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. */ @@ -4135,37 +3592,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. */ @@ -4179,14 +3628,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() { @@ -4199,14 +3645,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 @@ -4214,14 +3657,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 @@ -4232,14 +3672,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. */ @@ -4250,37 +3687,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. */ @@ -4294,14 +3723,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() { @@ -4312,9 +3738,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); } @@ -4324,12 +3750,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(); } @@ -4338,16 +3764,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; @@ -4362,4 +3788,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 86% 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 43ca148..7c2e922 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,211 +102,160 @@ 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 internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return Whether the internalReason field is set. */ boolean hasInternalReason(); /** - * - * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The enum numeric value on the wire for internalReason. */ int getInternalReasonValue(); /** - * - * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; - * * @return The internalReason. */ com.google.cloud.run.v2.Condition.InternalReason getInternalReason(); /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return Whether the domainMappingReason field is set. */ boolean hasDomainMappingReason(); /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The enum numeric value on the wire for domainMappingReason. */ int getDomainMappingReasonValue(); /** - * - * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; - * * @return The domainMappingReason. */ com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason(); /** - * - * *
    * 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..7cde181 --- /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,106 @@ +// 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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.InternalReaso" + + "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" + + "gle.cloud.run.v2.Condition.DomainMapping" + + "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" + + "le.cloud.run.v2.Condition.RevisionReason" + + "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" + + "oud.run.v2.Condition.ExecutionReasonH\000\"\177" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" + + "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" + + "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" + + "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + + "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" + + "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" + + "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" + + "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" + + "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" + + "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" + + "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" + + "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" + + "CK_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\025W" + + "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" + + "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" + + "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" + + "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" + + "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" + + "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" + + "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" + + "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" + + "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" + + "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" + + "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" + + "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" + + "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" + + "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" + + "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" + + "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" + + "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" + + "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" + + "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" + + "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" + + "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" + + "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" + + "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" + + "easonsBc\n\027com.google.cloud.run.v2B\016Condi" + + "tionProtoP\001Z6google.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.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", "InternalReason", "DomainMappingReason", "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 fe4d3fd..657ebf2 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,101 +64,90 @@ 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) {
       throw e.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();
@@ -196,33 +168,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 @@ -231,29 +197,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 { @@ -264,15 +230,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 Docker
    * More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ @java.lang.Override @@ -281,30 +244,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 Docker
    * 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 { @@ -315,8 +278,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.
@@ -330,15 +291,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.
@@ -352,15 +311,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.
@@ -374,7 +330,6 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -382,8 +337,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.
@@ -397,19 +350,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.
@@ -423,15 +374,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.
@@ -445,15 +394,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.
@@ -467,7 +413,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -475,8 +420,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.
@@ -490,19 +433,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.
    * 
@@ -514,8 +455,6 @@ public java.util.List getEnvList() { return env_; } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -523,12 +462,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.
    * 
@@ -540,8 +478,6 @@ public int getEnvCount() { return env_.size(); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -553,8 +489,6 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -562,15 +496,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:
@@ -578,7 +511,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 @@ -586,8 +518,6 @@ public boolean hasResources() { return resources_ != null; } /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -595,18 +525,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:
@@ -623,8 +548,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
@@ -640,8 +563,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
@@ -653,13 +574,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
@@ -675,8 +594,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
@@ -692,8 +609,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
@@ -705,15 +620,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.
    * 
@@ -725,8 +639,6 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -734,13 +646,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.
    * 
@@ -752,8 +662,6 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -765,8 +673,6 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -774,12 +680,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; @@ -791,7 +697,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_); } @@ -848,16 +755,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; @@ -867,24 +778,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; } @@ -929,103 +848,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
@@ -1036,23 +949,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()
@@ -1060,19 +971,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();
@@ -1112,9 +1023,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
@@ -1187,39 +1098,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;
@@ -1274,10 +1184,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_);
           }
@@ -1304,10 +1213,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_);
           }
@@ -1331,10 +1239,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_);
           }
@@ -1368,25 +1275,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; @@ -1395,21 +1299,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 { @@ -1417,61 +1320,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; @@ -1479,21 +1375,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 Docker
      * 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; @@ -1502,22 +1396,21 @@ public java.lang.String getImage() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 { @@ -1525,81 +1418,70 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 Docker
      * 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 Docker
      * 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.
@@ -1613,15 +1495,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.
@@ -1635,15 +1515,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.
@@ -1657,7 +1534,6 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1665,8 +1541,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.
@@ -1680,16 +1554,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.
@@ -1703,23 +1575,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.
@@ -1733,22 +1603,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.
@@ -1762,19 +1630,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.
@@ -1788,7 +1655,6 @@ public Builder addAllCommand(java.lang.Iterable values) {
      * 
* * repeated string command = 3; - * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1798,8 +1664,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.
@@ -1813,33 +1677,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.
@@ -1853,15 +1713,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.
@@ -1875,15 +1733,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.
@@ -1897,7 +1752,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1905,8 +1759,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.
@@ -1920,16 +1772,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.
@@ -1943,23 +1793,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.
@@ -1973,22 +1821,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.
@@ -2002,19 +1848,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.
@@ -2028,7 +1873,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 4; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -2038,8 +1882,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2053,39 +1895,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.
      * 
@@ -2100,8 +1937,6 @@ public java.util.List getEnvList() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2116,8 +1951,6 @@ public int getEnvCount() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2132,15 +1965,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(); @@ -2154,15 +1986,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()); @@ -2173,8 +2004,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.
      * 
@@ -2195,15 +2024,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(); @@ -2217,15 +2045,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()); @@ -2236,15 +2063,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()); @@ -2255,18 +2081,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); @@ -2274,8 +2100,6 @@ public Builder addAllEnv(java.lang.Iterable * List of environment variables to set in the container. *
@@ -2293,8 +2117,6 @@ public Builder clearEnv() { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2312,43 +2134,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 { @@ -2356,8 +2174,6 @@ public java.util.List getEnvO } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2365,46 +2181,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_; @@ -2412,13 +2224,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:
@@ -2426,15 +2233,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:
@@ -2442,21 +2246,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:
@@ -2479,8 +2278,6 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2501,8 +2298,6 @@ public Builder setResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2515,9 +2310,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;
         }
@@ -2529,8 +2322,6 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2551,8 +2342,6 @@ public Builder clearResources() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2562,13 +2351,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:
@@ -2581,14 +2368,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:
@@ -2598,41 +2382,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
@@ -2651,8 +2426,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
@@ -2671,8 +2444,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
@@ -2691,8 +2462,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
@@ -2703,7 +2472,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();
@@ -2717,8 +2487,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
@@ -2741,8 +2509,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
@@ -2767,8 +2533,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
@@ -2779,7 +2543,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();
@@ -2793,8 +2558,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
@@ -2805,7 +2568,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());
@@ -2816,8 +2580,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
@@ -2840,8 +2602,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
@@ -2856,7 +2616,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);
@@ -2864,8 +2625,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
@@ -2887,8 +2646,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
@@ -2910,8 +2667,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
@@ -2922,12 +2677,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
@@ -2938,16 +2692,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
@@ -2958,8 +2710,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 {
@@ -2967,8 +2719,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
@@ -2980,12 +2730,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
@@ -2996,13 +2744,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
@@ -3013,46 +2760,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.
      * 
@@ -3067,8 +2806,6 @@ public java.util.List getVolumeMountsList() } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3083,8 +2820,6 @@ public int getVolumeMountsCount() { } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3099,15 +2834,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(); @@ -3121,8 +2855,6 @@ public Builder setVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount va return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3141,8 +2873,6 @@ public Builder setVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3163,15 +2893,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(); @@ -3185,15 +2914,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()); @@ -3204,8 +2932,6 @@ public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount.Builder build return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3224,8 +2950,6 @@ public Builder addVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3236,7 +2960,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); @@ -3244,8 +2969,6 @@ public Builder addAllVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3263,8 +2986,6 @@ public Builder clearVolumeMounts() { return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3282,44 +3003,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 { @@ -3327,8 +3043,6 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3336,55 +3050,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); } @@ -3394,12 +3102,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(); } @@ -3408,16 +3116,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; @@ -3432,4 +3140,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 d1b3382..73b7983 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 Docker
    * 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 Docker
    * 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 ec8f386..a894a5c 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,64 +53,58 @@ 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) { throw e.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 @@ -136,30 +113,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 { @@ -170,15 +147,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 @@ -187,7 +161,6 @@ public int getContainerPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +172,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_); } @@ -219,7 +193,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; @@ -229,15 +204,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; } @@ -258,126 +235,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() @@ -385,15 +354,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(); @@ -405,9 +375,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 @@ -426,8 +396,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(); @@ -438,39 +407,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; @@ -517,21 +485,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; @@ -540,22 +506,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 { @@ -563,80 +528,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 @@ -644,45 +599,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); } @@ -692,12 +641,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(); } @@ -706,16 +655,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; @@ -730,4 +679,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 69% 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 88a038b..beed4d8 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,88 +54,77 @@ 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) { throw e.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 @@ -161,32 +133,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 { @@ -197,15 +167,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 @@ -213,15 +179,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 @@ -229,14 +191,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() { @@ -246,15 +205,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 @@ -263,30 +219,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 { @@ -297,15 +253,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 @@ -314,7 +267,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +278,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_); } @@ -352,13 +305,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; @@ -368,21 +323,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; } @@ -403,133 +361,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() @@ -537,15 +487,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(); @@ -565,9 +516,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 @@ -586,8 +537,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_; @@ -604,39 +554,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; @@ -690,23 +639,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; @@ -715,24 +660,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 { @@ -740,70 +682,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; @@ -811,35 +740,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() { @@ -850,14 +768,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) { @@ -873,16 +788,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(); @@ -893,20 +806,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; } @@ -918,14 +828,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) { @@ -939,59 +846,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_; @@ -999,21 +895,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; @@ -1022,22 +916,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 { @@ -1045,80 +938,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 @@ -1126,45 +1009,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); } @@ -1174,12 +1051,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(); } @@ -1188,16 +1065,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; @@ -1212,4 +1089,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 69% 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 c5b40af..4d0b67c 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,74 +56,65 @@ 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) {
       throw e.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 @@ -149,33 +123,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 { @@ -186,15 +158,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 @@ -205,15 +174,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 @@ -222,30 +188,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 { @@ -254,7 +220,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +231,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_); } @@ -289,7 +255,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_); @@ -302,17 +269,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; } @@ -327,7 +296,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(); @@ -335,104 +305,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
@@ -441,23 +404,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()
@@ -465,15 +426,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -487,9 +449,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
@@ -508,8 +470,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_;
@@ -521,39 +482,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;
@@ -604,24 +564,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; @@ -630,25 +586,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 { @@ -656,89 +609,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 @@ -746,38 +683,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; @@ -785,21 +716,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; @@ -808,22 +737,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 { @@ -831,71 +759,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); } @@ -905,12 +826,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(); } @@ -919,16 +840,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; @@ -943,4 +864,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 779f691..6d82284 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,73 +54,64 @@ 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) { throw e.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 @@ -146,32 +120,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 { @@ -182,15 +154,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 @@ -201,15 +170,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 @@ -218,30 +184,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 { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -285,7 +251,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_); @@ -298,17 +265,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; } @@ -323,7 +292,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(); @@ -331,127 +301,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() @@ -459,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +443,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 @@ -502,8 +464,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_; @@ -515,39 +476,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; @@ -598,23 +558,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; @@ -623,24 +579,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 { @@ -648,86 +601,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 @@ -735,38 +672,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; @@ -774,21 +705,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; @@ -797,22 +726,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 { @@ -820,71 +748,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); } @@ -894,12 +815,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(); } @@ -908,16 +829,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; @@ -932,4 +853,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 6199ab6..735e5f4 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,81 +53,73 @@ 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) { throw e.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; } @@ -160,38 +135,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 @@ -200,30 +169,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 { @@ -233,8 +202,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
@@ -247,15 +214,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
@@ -268,7 +232,6 @@ public boolean hasValue() {
    * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { @@ -279,7 +242,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; @@ -288,8 +252,6 @@ public java.lang.String getValue() { } } /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -302,17 +264,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; } @@ -324,14 +287,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 @@ -339,26 +299,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.
    * 
@@ -368,13 +323,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; @@ -386,7 +340,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_); } @@ -412,9 +367,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; @@ -424,21 +378,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: @@ -473,123 +430,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); } @@ -599,15 +549,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(); @@ -619,9 +570,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 @@ -661,39 +612,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; @@ -707,22 +657,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(); @@ -752,12 +699,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() { @@ -767,23 +714,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; @@ -792,22 +738,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 { @@ -815,72 +760,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
@@ -893,7 +829,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -901,8 +836,6 @@ public boolean hasValue() { return valuesCase_ == 2; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -915,7 +848,6 @@ public boolean hasValue() {
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -925,7 +857,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; @@ -936,8 +869,6 @@ public java.lang.String getValue() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -950,18 +881,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; } @@ -971,8 +903,6 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -985,22 +915,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
@@ -1013,7 +941,6 @@ public Builder setValue(java.lang.String value) {
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1025,8 +952,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -1039,15 +964,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(); @@ -1055,19 +980,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 @@ -1075,14 +994,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 @@ -1100,8 +1016,6 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1122,15 +1036,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(); @@ -1141,8 +1054,6 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder build return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1151,13 +1062,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; } @@ -1172,8 +1080,6 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1197,8 +1103,6 @@ public Builder clearValueSource() { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1209,8 +1113,6 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1229,8 +1131,6 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1238,30 +1138,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); } @@ -1271,12 +1167,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(); } @@ -1285,16 +1181,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; @@ -1309,4 +1205,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 68% 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 b92d8be..5ed79aa 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,67 +52,59 @@ 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) { throw e.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 @@ -136,25 +112,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.
    * 
@@ -167,7 +136,6 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +147,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()); } @@ -193,7 +162,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; @@ -203,7 +173,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); @@ -212,7 +182,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; @@ -234,126 +205,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() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,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 @@ -418,39 +382,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; @@ -493,47 +456,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.
      * 
@@ -554,8 +504,6 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -574,8 +522,6 @@ public Builder setSecretKeyRef( return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -586,9 +532,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; } @@ -600,8 +544,6 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -620,8 +562,6 @@ public Builder clearSecretKeyRef() { return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -629,13 +569,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.
      * 
@@ -646,14 +584,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.
      * 
@@ -661,24 +596,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); } @@ -688,12 +620,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(); } @@ -702,16 +634,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; @@ -726,4 +658,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 b9e959e..07d5c71 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 Google-default environment.
    * 
@@ -49,8 +29,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ EXECUTION_ENVIRONMENT_DEFAULT(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 Google-default environment.
    * 
@@ -82,8 +56,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_DEFAULT_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_DEFAULT; - case 2: - return EXECUTION_ENVIRONMENT_GEN2; - default: - return null; + case 0: return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: return EXECUTION_ENVIRONMENT_DEFAULT; + 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 65% 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 6608033..ef20db6 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,62 +53,54 @@ 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) { throw e.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 @@ -134,33 +109,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 { @@ -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.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; } @@ -232,127 +205,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() @@ -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.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 @@ -399,8 +364,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; @@ -410,39 +374,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; @@ -486,24 +449,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; @@ -512,25 +471,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 { @@ -538,80 +494,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); } @@ -621,12 +564,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(); } @@ -635,16 +578,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; @@ -659,4 +602,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 354e321..167c2f1 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,61 +53,53 @@ 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) { throw e.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 @@ -133,32 +108,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -230,127 +203,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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.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 @@ -397,8 +362,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; @@ -408,39 +372,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; @@ -484,23 +447,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; @@ -509,24 +468,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 { @@ -534,77 +490,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); } @@ -614,12 +557,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(); } @@ -628,16 +571,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; @@ -652,4 +595,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..55b8a68 --- /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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" + + "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" + + "g.org/genproto/googleapis/cloud/run/v2;r" + + "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" + + "\022Sprojects/{project}/locations/{location" + + "}/keyRings/{key_ring}/cryptoKeys/{crypto" + + "_key}\352AJ\n#secretmanager.googleapis.com/S" + + "ecret\022#projects/{project}/secrets/{secre" + + "t}\352Ad\n*secretmanager.googleapis.com/Secr" + + "etVersion\0226projects/{project}/secrets/{s" + + "ecret}/versions/{version}\352Ad\n\"vpcaccess." + + "googleapis.com/Connector\022>projects/{proj" + + "ect}/locations/{location}/connectors/{co" + + "nnector}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[] { "Connections", }); + 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 d519f06..c29bba3 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,69 +54,63 @@ 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) { throw e.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.
@@ -141,10 +118,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 @@ -153,15 +127,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.
@@ -169,18 +142,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 { @@ -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 revisions 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 ListRevisions.
    * 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 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 { @@ -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.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; } @@ -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.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() @@ -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.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 @@ -539,8 +500,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_; @@ -553,39 +513,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; @@ -639,8 +598,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.
@@ -648,16 +605,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; @@ -666,8 +621,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.
@@ -675,17 +628,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 { @@ -693,8 +645,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.
@@ -702,25 +652,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.
@@ -728,21 +674,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.
@@ -750,34 +691,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 @@ -785,36 +721,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; @@ -822,21 +752,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; @@ -845,22 +773,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 { @@ -868,79 +795,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 @@ -948,43 +865,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); } @@ -994,12 +905,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(); } @@ -1008,16 +919,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; @@ -1032,4 +943,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 7780bb6..531901c 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,36 +55,35 @@ 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) { throw e.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_); @@ -110,27 +92,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.
    * 
@@ -142,8 +119,6 @@ public java.util.List getRevisionsList() { return revisions_; } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -151,13 +126,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.
    * 
@@ -169,8 +142,6 @@ public int getRevisionsCount() { return revisions_.size(); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -182,8 +153,6 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -191,22 +160,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 @@ -215,30 +182,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 { @@ -247,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +225,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)); } @@ -276,7 +243,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_); @@ -289,16 +257,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; } @@ -321,127 +290,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() @@ -449,17 +409,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(); @@ -475,9 +435,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 @@ -496,8 +456,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)) { @@ -517,39 +476,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; @@ -576,10 +534,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_); } @@ -617,28 +574,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.
      * 
@@ -653,8 +603,6 @@ public java.util.List getRevisionsList() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -669,8 +617,6 @@ public int getRevisionsCount() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -685,15 +631,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(); @@ -707,8 +652,6 @@ public Builder setRevisions(int index, com.google.cloud.run.v2.Revision value) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -727,8 +670,6 @@ public Builder setRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -749,15 +690,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(); @@ -771,15 +711,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()); @@ -790,8 +729,6 @@ public Builder addRevisions(com.google.cloud.run.v2.Revision.Builder builderForV return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -810,8 +747,6 @@ public Builder addRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -822,7 +757,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); @@ -830,8 +766,6 @@ public Builder addAllRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -849,8 +783,6 @@ public Builder clearRevisions() { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -868,44 +800,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 { @@ -913,8 +840,6 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -922,47 +847,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_; @@ -970,21 +890,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; @@ -993,22 +911,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 { @@ -1016,71 +933,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); } @@ -1090,12 +1000,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(); } @@ -1104,16 +1014,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; @@ -1128,4 +1038,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 0a02b2c..2204fdc 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,79 +54,70 @@ 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) { throw e.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 @@ -152,33 +126,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 { @@ -189,14 +161,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 @@ -207,15 +176,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 @@ -224,30 +190,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 { @@ -258,14 +224,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 @@ -274,7 +237,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +248,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_); } @@ -312,13 +275,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; @@ -328,18 +293,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; } @@ -358,133 +326,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() @@ -492,15 +452,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -516,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_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 @@ -537,8 +498,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_; @@ -551,39 +511,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; @@ -637,24 +596,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; @@ -663,25 +618,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 { @@ -689,88 +641,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 @@ -778,36 +714,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; @@ -815,21 +745,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; @@ -838,22 +766,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 { @@ -861,79 +788,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 @@ -941,43 +858,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); } @@ -987,12 +898,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(); } @@ -1001,16 +912,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; @@ -1025,4 +936,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 cb0f706..69f2b36 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,36 +55,35 @@ 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) { throw e.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_); @@ -110,27 +92,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.
    * 
@@ -142,8 +119,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * The resulting list of Services.
    * 
@@ -151,13 +126,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.
    * 
@@ -169,8 +142,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -182,8 +153,6 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -191,22 +160,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 @@ -215,30 +182,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 { @@ -247,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +225,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)); } @@ -276,7 +243,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_); @@ -289,16 +257,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; } @@ -321,127 +290,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() @@ -449,17 +409,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(); @@ -475,9 +435,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 @@ -496,8 +456,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)) { @@ -517,39 +476,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; @@ -576,10 +534,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_); } @@ -617,28 +574,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.
      * 
@@ -653,8 +603,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -669,8 +617,6 @@ public int getServicesCount() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -685,15 +631,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(); @@ -707,15 +652,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()); @@ -726,8 +670,6 @@ public Builder setServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -748,15 +690,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(); @@ -770,15 +711,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()); @@ -789,15 +729,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()); @@ -808,8 +747,6 @@ public Builder addServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -820,7 +757,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); @@ -828,8 +766,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -847,8 +783,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -866,44 +800,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 { @@ -911,8 +840,6 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -920,47 +847,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_; @@ -968,21 +890,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; @@ -991,22 +911,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 { @@ -1014,71 +933,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); } @@ -1088,12 +1000,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(); } @@ -1102,16 +1014,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; @@ -1126,4 +1038,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 65% 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 d2eea4b..19ee6ff 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,87 +53,87 @@ 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) { throw e.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_; } @@ -158,8 +142,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
@@ -170,22 +152,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
+
   @java.lang.Override
-  public boolean containsLimits(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLimits(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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
@@ -197,12 +179,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
@@ -214,16 +195,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    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
@@ -235,11 +216,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -249,14 +231,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 @@ -265,7 +244,6 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,9 +255,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_); } @@ -292,18 +275,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; @@ -313,16 +297,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; } @@ -339,153 +324,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() @@ -493,15 +472,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +492,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 @@ -533,8 +513,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(); @@ -547,39 +526,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; @@ -588,7 +566,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()); } @@ -620,24 +599,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(); @@ -649,8 +628,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
@@ -661,22 +638,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
+
     @java.lang.Override
-    public boolean containsLimits(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLimits(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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
@@ -688,12 +665,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
@@ -705,17 +681,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLimits().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -727,11 +702,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLimits().getMap();
+
+    public java.lang.String getLimitsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -739,12 +715,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
@@ -755,21 +730,23 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-    public Builder removeLimits(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLimits().getMutableMap().remove(key);
+
+    public Builder removeLimits(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -780,19 +757,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLimits().getMutableMap().put(key, value);
+    public Builder putLimits(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -803,21 +777,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 @@ -825,43 +799,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); } @@ -871,12 +839,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(); } @@ -885,16 +853,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; @@ -909,4 +877,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 71% 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 1400871..0768f83 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
@@ -81,10 +62,11 @@ public interface ResourceRequirementsOrBuilder
    *
    * map<string, string> limits = 1;
    */
-  java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLimitsOrDefault(
+      java.lang.String key,
+      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
@@ -95,17 +77,16 @@ public interface ResourceRequirementsOrBuilder
    *
    * 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 f3e7bc2..9f2fb8c 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,271 +67,243 @@ 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:
-            {
-              generation_ = input.readInt64();
-              break;
-            }
-          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;
-            }
-          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;
-            }
-          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;
+            uid_ = s;
+            break;
+          }
+          case 24: {
+
+            generation_ = input.readInt64();
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          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;
+            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 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;
+            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 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;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 80:
-            {
-              int rawValue = input.readEnum();
 
-              launchStage_ = rawValue;
-              break;
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              service_ = s;
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = 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 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteTime_ != null) {
+              subBuilder = deleteTime_.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;
+            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteTime_);
+              deleteTime_ = subBuilder.buildPartial();
             }
-          case 112:
-            {
-              containerConcurrency_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.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;
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          case 130:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccount_ = 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 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;
+            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scaling_);
+              scaling_ = 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;
+
+            break;
+          }
+          case 106: {
+            com.google.cloud.run.v2.VpcAccess.Builder subBuilder = null;
+            if (vpcAccess_ != null) {
+              subBuilder = vpcAccess_.toBuilder();
             }
-          case 152:
-            {
-              confidential_ = input.readBool();
-              break;
+            vpcAccess_ = input.readMessage(com.google.cloud.run.v2.VpcAccess.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vpcAccess_);
+              vpcAccess_ = subBuilder.buildPartial();
             }
-          case 160:
-            {
-              int rawValue = input.readEnum();
 
-              executionEnvironment_ = rawValue;
-              break;
-            }
-          case 170:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 112: {
 
-              encryptionKey_ = s;
-              break;
+            containerConcurrency_ = input.readInt32();
+            break;
+          }
+          case 122: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (timeout_ != null) {
+              subBuilder = timeout_.toBuilder();
             }
-          case 240:
-            {
-              reconciling_ = input.readBool();
-              break;
+            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(timeout_);
+              timeout_ = subBuilder.buildPartial();
             }
-          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;
+
+            break;
+          }
+          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;
             }
-          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 152: {
 
-              logUri_ = s;
-              break;
-            }
-          case 794:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            confidential_ = input.readBool();
+            break;
+          }
+          case 160: {
+            int rawValue = input.readEnum();
 
-              etag_ = s;
-              break;
+            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;
             }
-          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 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) {
       throw e.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_);
@@ -363,30 +318,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);
   }
@@ -394,14 +348,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 @@ -410,29 +361,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 { @@ -443,15 +394,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 @@ -460,30 +408,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 { @@ -494,15 +442,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 @@ -511,23 +456,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_; } @@ -536,8 +482,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
@@ -552,22 +496,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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
@@ -583,12 +527,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
@@ -604,16 +547,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    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
@@ -629,11 +572,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -641,24 +585,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_;
   }
@@ -667,30 +611,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 java.lang.NullPointerException(); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -698,12 +640,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.
    * 
@@ -711,17 +652,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -729,11 +669,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -743,15 +684,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 @@ -759,15 +696,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 @@ -775,14 +708,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() { @@ -792,15 +722,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 @@ -808,15 +734,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 @@ -824,14 +746,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() { @@ -841,16 +760,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 @@ -858,16 +773,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 @@ -875,15 +786,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() { @@ -893,17 +801,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 @@ -911,17 +815,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 @@ -929,16 +829,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() { @@ -948,8 +845,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
@@ -958,16 +853,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
@@ -976,11 +867,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; @@ -989,16 +878,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 @@ -1007,31 +891,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 { @@ -1042,14 +924,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 @@ -1057,25 +936,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.
    * 
@@ -1090,15 +962,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 @@ -1106,15 +975,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 @@ -1122,8 +988,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.
@@ -1139,14 +1003,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 14;
   private int containerConcurrency_;
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 14; - * * @return The containerConcurrency. */ @java.lang.Override @@ -1157,14 +1018,11 @@ public int getContainerConcurrency() { 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 @@ -1172,14 +1030,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 @@ -1187,8 +1042,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.
    * 
@@ -1203,8 +1056,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
@@ -1212,7 +1063,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; - * * @return The serviceAccount. */ @java.lang.Override @@ -1221,15 +1071,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
@@ -1237,15 +1086,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 { @@ -1256,8 +1106,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.
@@ -1270,8 +1118,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1280,13 +1126,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.
@@ -1299,8 +1143,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1313,8 +1155,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.
@@ -1323,15 +1163,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.
    * 
@@ -1343,8 +1182,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1352,13 +1189,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.
    * 
@@ -1370,8 +1205,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1383,8 +1216,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1392,21 +1223,19 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 19; private boolean confidential_; /** - * - * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; - * * @return The confidential. */ @java.lang.Override @@ -1417,44 +1246,33 @@ public boolean getConfidential() { 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
@@ -1462,7 +1280,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -1471,15 +1288,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
@@ -1487,15 +1303,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 { @@ -1506,8 +1323,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
@@ -1515,7 +1330,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1526,92 +1340,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
@@ -1619,7 +1412,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 @@ -1630,14 +1422,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 @@ -1646,29 +1435,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 { @@ -1679,15 +1468,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 @@ -1696,30 +1482,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 { @@ -1728,7 +1514,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1740,7 +1525,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_); } @@ -1750,10 +1536,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()); } @@ -1796,9 +1590,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidential_ != false) { output.writeBool(19, confidential_); } - 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_)) { @@ -1835,86 +1627,101 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, confidential_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, confidential_); } - 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_); @@ -1930,60 +1737,84 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (getContainerConcurrency() != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() + != other.getContainerConcurrency()) 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 (getConfidential() != other.getConfidential()) 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 (getConfidential() + != other.getConfidential()) 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; } @@ -2000,7 +1831,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(); @@ -2054,19 +1886,22 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; 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; @@ -2076,103 +1911,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
@@ -2181,47 +2010,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()
@@ -2229,19 +2058,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();
@@ -2339,9 +2168,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
@@ -2450,39 +2279,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;
@@ -2502,8 +2330,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());
       }
@@ -2557,10 +2387,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_);
           }
@@ -2584,10 +2413,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_);
           }
@@ -2624,10 +2452,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_);
           }
@@ -2672,25 +2499,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; @@ -2699,21 +2523,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 { @@ -2721,61 +2544,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; @@ -2783,21 +2599,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; @@ -2806,22 +2620,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 { @@ -2829,80 +2642,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 @@ -2910,58 +2713,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(); @@ -2973,8 +2771,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
@@ -2989,22 +2785,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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
@@ -3020,12 +2816,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
@@ -3041,17 +2836,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3067,11 +2861,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3079,12 +2874,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
@@ -3099,21 +2893,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3128,19 +2924,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3155,29 +2948,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();
@@ -3189,30 +2983,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 java.lang.NullPointerException(); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -3220,12 +3012,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.
      * 
@@ -3233,17 +3024,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3251,11 +3041,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3263,117 +3054,99 @@ 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 java.lang.NullPointerException(); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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) { @@ -3389,17 +3162,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(); @@ -3410,21 +3180,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; } @@ -3436,15 +3202,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) { @@ -3458,64 +3220,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_; @@ -3523,58 +3269,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) { @@ -3590,17 +3317,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(); @@ -3611,21 +3335,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; } @@ -3637,15 +3357,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) { @@ -3659,64 +3375,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_; @@ -3724,61 +3424,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) { @@ -3794,18 +3475,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(); @@ -3816,22 +3494,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; } @@ -3843,16 +3517,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) { @@ -3866,67 +3536,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_; @@ -3934,64 +3588,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) { @@ -4007,19 +3642,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(); @@ -4030,23 +3662,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; } @@ -4058,17 +3686,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) { @@ -4082,70 +3706,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_; @@ -4153,8 +3761,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
@@ -4163,16 +3769,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
@@ -4181,19 +3783,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
@@ -4202,7 +3801,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ @java.lang.Override @@ -4212,8 +3810,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
@@ -4222,7 +3818,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4230,14 +3825,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
@@ -4246,11 +3839,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; @@ -4258,22 +3850,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; @@ -4282,23 +3870,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 { @@ -4306,67 +3891,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; @@ -4374,47 +3946,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.
      * 
@@ -4435,15 +3994,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(); @@ -4454,8 +4012,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4466,9 +4022,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; } @@ -4480,8 +4034,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4500,8 +4052,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4509,13 +4059,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.
      * 
@@ -4526,14 +4074,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.
      * 
@@ -4541,17 +4086,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_; @@ -4559,49 +4101,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.
@@ -4623,8 +4152,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.
@@ -4632,7 +4159,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();
@@ -4643,8 +4171,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.
@@ -4656,9 +4182,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;
         }
@@ -4670,8 +4194,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.
@@ -4691,8 +4213,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.
@@ -4701,13 +4221,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.
@@ -4719,14 +4237,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.
@@ -4735,32 +4250,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 containerConcurrency_;
+    private int containerConcurrency_ ;
     /**
-     *
-     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; - * * @return The containerConcurrency. */ @java.lang.Override @@ -4768,36 +4277,30 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; - * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; - * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -4805,33 +4308,24 @@ public Builder clearContainerConcurrency() { 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() { @@ -4842,8 +4336,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4864,15 +4356,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(); @@ -4883,8 +4374,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4895,7 +4384,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; } @@ -4907,8 +4396,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4927,8 +4414,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4936,13 +4421,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.
      * 
@@ -4953,12 +4436,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.
      * 
@@ -4966,17 +4448,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_; @@ -4984,8 +4463,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
@@ -4993,13 +4470,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; @@ -5008,8 +4485,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
@@ -5017,14 +4492,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 { @@ -5032,8 +4508,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
@@ -5041,22 +4515,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
@@ -5064,18 +4536,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
@@ -5083,40 +4552,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) { + 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.
@@ -5132,8 +4595,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5149,8 +4610,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5166,8 +4625,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5175,7 +4632,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();
@@ -5189,8 +4647,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.
@@ -5210,8 +4666,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5233,8 +4687,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.
@@ -5242,7 +4694,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();
@@ -5256,8 +4709,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.
@@ -5265,7 +4716,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());
@@ -5276,8 +4728,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.
@@ -5297,8 +4747,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5310,7 +4758,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);
@@ -5318,8 +4767,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5338,8 +4785,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5358,8 +4803,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5367,12 +4810,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.
@@ -5380,16 +4822,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.
@@ -5397,8 +4837,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 {
@@ -5406,8 +4846,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5416,12 +4854,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.
@@ -5429,13 +4865,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.
@@ -5443,46 +4878,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.
      * 
@@ -5497,8 +4924,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5513,8 +4938,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5529,15 +4952,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(); @@ -5551,15 +4973,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()); @@ -5570,8 +4991,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.
      * 
@@ -5592,15 +5011,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(); @@ -5614,15 +5032,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()); @@ -5633,15 +5050,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()); @@ -5652,8 +5068,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.
      * 
@@ -5664,7 +5078,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); @@ -5672,8 +5087,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5691,8 +5104,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5710,44 +5121,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 { @@ -5755,8 +5161,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5764,62 +5168,54 @@ 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_; } - private boolean confidential_; + private boolean confidential_ ; /** - * - * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; - * * @return The confidential. */ @java.lang.Override @@ -5827,36 +5223,30 @@ public boolean getConfidential() { return confidential_; } /** - * - * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; - * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; - * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -5864,65 +5254,51 @@ public Builder clearConfidential() { 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. */ @@ -5930,24 +5306,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; @@ -5955,8 +5328,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
@@ -5964,13 +5335,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; @@ -5979,8 +5350,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
@@ -5988,14 +5357,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 { @@ -6003,8 +5373,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
@@ -6012,22 +5380,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
@@ -6035,18 +5401,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
@@ -6054,25 +5417,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
@@ -6080,7 +5441,6 @@ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -6088,8 +5448,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
@@ -6097,19 +5455,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
@@ -6117,43 +5472,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) { @@ -6163,16 +5509,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) { @@ -6182,16 +5524,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) { @@ -6201,18 +5539,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(); @@ -6226,16 +5561,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) { @@ -6249,16 +5580,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) { @@ -6274,18 +5601,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(); @@ -6299,18 +5623,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()); @@ -6321,16 +5642,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) { @@ -6344,22 +5661,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); @@ -6367,16 +5681,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) { @@ -6389,16 +5699,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) { @@ -6411,53 +5717,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 { @@ -6465,74 +5760,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
@@ -6540,7 +5820,6 @@ public java.util.List getConditionsBu
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -6548,8 +5827,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
@@ -6557,19 +5834,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
@@ -6577,11 +5851,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; @@ -6589,20 +5862,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; @@ -6611,21 +5882,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 { @@ -6633,61 +5903,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; @@ -6695,21 +5958,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; @@ -6718,22 +5979,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 { @@ -6741,71 +6001,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); } @@ -6815,12 +6068,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(); } @@ -6829,16 +6082,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; @@ -6853,4 +6106,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 b35ab40..dd4009c 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
@@ -163,10 +131,11 @@ public interface RevisionOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -181,11 +150,11 @@ public interface RevisionOrBuilder
    *
    * 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.
    * 
@@ -194,213 +163,169 @@ public interface RevisionOrBuilder */ 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.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + 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
@@ -409,13 +334,10 @@ public interface RevisionOrBuilder
    * 
* * .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
@@ -424,67 +346,49 @@ public interface RevisionOrBuilder
    * 
* * .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.
    * 
@@ -494,34 +398,26 @@ public interface RevisionOrBuilder 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.
@@ -532,45 +428,34 @@ public interface RevisionOrBuilder
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 14; - * * @return The containerConcurrency. */ int getContainerConcurrency(); /** - * - * *
    * 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.
    * 
@@ -580,8 +465,6 @@ public interface RevisionOrBuilder 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
@@ -589,13 +472,10 @@ public interface RevisionOrBuilder
    * 
* * 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
@@ -603,14 +483,12 @@ public interface RevisionOrBuilder
    * 
* * 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.
@@ -618,10 +496,9 @@ public interface RevisionOrBuilder
    *
    * 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.
@@ -631,8 +508,6 @@ public interface RevisionOrBuilder
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -642,8 +517,6 @@ public interface RevisionOrBuilder
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -651,10 +524,9 @@ public interface RevisionOrBuilder
    *
    * 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.
@@ -662,21 +534,19 @@ public interface RevisionOrBuilder
    *
    * 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.
    * 
@@ -685,8 +555,6 @@ public interface RevisionOrBuilder */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -695,67 +563,54 @@ public interface RevisionOrBuilder */ 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); /** - * - * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; - * * @return The confidential. */ boolean getConfidential(); /** - * - * *
    * 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
@@ -763,13 +618,10 @@ public interface RevisionOrBuilder
    * 
* * 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
@@ -777,14 +629,12 @@ public interface RevisionOrBuilder
    * 
* * 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
@@ -792,80 +642,60 @@ public interface RevisionOrBuilder
    * 
* * 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
@@ -873,60 +703,49 @@ public interface RevisionOrBuilder
    * 
* * 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..c4c0ccb --- /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,219 @@ +// 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#google/cloud/run/v2/condition.proto" + + "\032!google/cloud/run/v2/k8s.min.proto\032)goo" + + "gle/cloud/run/v2/vendor_settings.proto\032#" + + "google/longrunning/operations.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\"G\n\022GetRevisionReque" + + "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" + + "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" + + "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" + + "oogle.cloud.run.v2.Revision\022\027\n\017next_page" + + "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" + + "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" + + "\003 \001(\t\"\314\n\n\010Revision\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.R" + + "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" + + "2..google.cloud.run.v2.Revision.Annotati" + + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "delete_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" + + "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" + + "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" + + "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" + + ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" + + "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" + + "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" + + "\031.google.protobuf.Duration\022\027\n\017service_ac" + + "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" + + ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" + + "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" + + "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" + + "(\0162).google.cloud.run.v2.ExecutionEnviro" + + "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" + + "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" + + "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" + + "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + + "rved_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\340A\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" + + "\022Oprojects/{project}/locations/{location" + + "}/services/{service}/revisions/{revision" + + "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" + + "gle.cloud.run.v2.GetRevisionRequest\032\035.go" + + "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" + + "{name=projects/*/locations/*/services/*/" + + "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." + + "google.cloud.run.v2.ListRevisionsRequest" + + "\032*.google.cloud.run.v2.ListRevisionsResp" + + "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" + + "ations/*/services/*}/revisions\332A\006parent\022" + + "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" + + ".DeleteRevisionRequest\032\035.google.longrunn" + + "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" + + "s/*/locations/*/services/*/revisions/*}\332" + + "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformBb\n\027com.google.clou" + + "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "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.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.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 94f8fb6..b4989ef 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,61 +52,56 @@ 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) { throw e.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 @@ -133,14 +112,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 @@ -149,7 +125,6 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +136,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_); } @@ -178,10 +154,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; @@ -191,15 +169,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; } @@ -220,127 +200,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() @@ -348,15 +319,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(); @@ -368,9 +340,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 @@ -389,8 +361,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(); @@ -401,39 +372,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; @@ -477,16 +447,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 @@ -494,51 +461,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 @@ -546,43 +504,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); } @@ -592,12 +544,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(); } @@ -606,16 +558,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; @@ -630,4 +582,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 8248e5a..6e76020 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,151 +60,137 @@ 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;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            revision_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          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
+            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 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;
+            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 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;
+            scaling_ = input.readMessage(com.google.cloud.run.v2.RevisionScaling.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scaling_);
+              scaling_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              containerConcurrency_ = input.readInt32();
-              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;
+            break;
+          }
+          case 56: {
+
+            containerConcurrency_ = input.readInt32();
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (timeout_ != null) {
+              subBuilder = timeout_.toBuilder();
             }
-          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;
+
+            break;
+          }
+          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;
             }
-          case 96:
-            {
-              confidential_ = input.readBool();
-              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 104:
-            {
-              int rawValue = input.readEnum();
+            volumes_.add(
+                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
+            break;
+          }
+          case 96: {
 
-              executionEnvironment_ = rawValue;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            confidential_ = input.readBool();
+            break;
+          }
+          case 104: {
+            int rawValue = input.readEnum();
 
-              encryptionKey_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            executionEnvironment_ = rawValue;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            encryptionKey_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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_);
@@ -233,47 +202,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 @@ -282,30 +246,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 { @@ -314,23 +278,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_; } @@ -339,30 +304,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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -370,12 +333,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.
    * 
@@ -383,16 +345,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -400,11 +362,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -412,24 +375,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_; } @@ -438,30 +401,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 java.lang.NullPointerException(); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -469,12 +430,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.
    * 
@@ -482,17 +442,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -500,11 +459,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -514,14 +474,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 @@ -529,25 +486,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.
    * 
@@ -562,15 +512,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 @@ -578,15 +525,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 @@ -594,8 +538,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.
@@ -611,14 +553,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 7;
   private int containerConcurrency_;
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 7; - * * @return The containerConcurrency. */ @java.lang.Override @@ -629,14 +568,11 @@ public int getContainerConcurrency() { 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 @@ -644,14 +580,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 @@ -659,8 +592,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.
    * 
@@ -675,8 +606,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
@@ -685,7 +614,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override @@ -694,15 +622,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
@@ -711,15 +638,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 { @@ -730,8 +658,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.
@@ -744,8 +670,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -754,13 +678,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.
@@ -773,8 +695,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -787,8 +707,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.
@@ -797,15 +715,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.
    * 
@@ -817,8 +734,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -826,13 +741,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.
    * 
@@ -844,8 +757,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -857,8 +768,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -866,21 +775,19 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 12; private boolean confidential_; /** - * - * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; - * * @return The confidential. */ @java.lang.Override @@ -891,44 +798,33 @@ public boolean getConfidential() { 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
@@ -936,7 +832,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -945,15 +840,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
@@ -961,15 +855,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 { @@ -978,7 +873,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -990,14 +884,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()); } @@ -1022,9 +925,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidential_ != false) { output.writeBool(12, confidential_); } - 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_)) { @@ -1042,54 +943,60 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, confidential_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, confidential_); } - 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_); @@ -1102,35 +1009,47 @@ 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 (getContainerConcurrency() != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() + != other.getContainerConcurrency()) 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 (getConfidential() != other.getConfidential()) 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 (getConfidential() + != other.getConfidential()) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1177,7 +1096,8 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; @@ -1187,104 +1107,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.
@@ -1292,47 +1205,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()
@@ -1340,18 +1253,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();
@@ -1403,9 +1316,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
@@ -1424,8 +1337,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();
@@ -1478,39 +1390,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;
@@ -1523,8 +1434,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());
       }
@@ -1559,10 +1472,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_);
           }
@@ -1586,10 +1498,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_);
           }
@@ -1633,26 +1544,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; @@ -1661,22 +1569,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 { @@ -1684,84 +1591,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(); @@ -1773,30 +1674,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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1804,12 +1703,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.
      * 
@@ -1817,17 +1715,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1835,11 +1732,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1847,81 +1745,80 @@ 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 java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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(); @@ -1933,30 +1830,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 java.lang.NullPointerException(); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1964,12 +1859,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.
      * 
@@ -1977,17 +1871,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1995,11 +1888,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2007,106 +1901,94 @@ 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 java.lang.NullPointerException(); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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.
      * 
@@ -2127,15 +2009,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(); @@ -2146,8 +2027,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2158,9 +2037,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; } @@ -2172,8 +2049,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2192,8 +2067,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2201,13 +2074,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.
      * 
@@ -2218,14 +2089,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.
      * 
@@ -2233,17 +2101,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_; @@ -2251,49 +2116,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.
@@ -2315,8 +2167,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.
@@ -2324,7 +2174,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();
@@ -2335,8 +2186,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.
@@ -2348,9 +2197,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;
         }
@@ -2362,8 +2209,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.
@@ -2383,8 +2228,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.
@@ -2393,13 +2236,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.
@@ -2411,14 +2252,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.
@@ -2427,32 +2265,26 @@ 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_;
     }
 
-    private int containerConcurrency_;
+    private int containerConcurrency_ ;
     /**
-     *
-     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; - * * @return The containerConcurrency. */ @java.lang.Override @@ -2460,36 +2292,30 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; - * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; - * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -2497,33 +2323,24 @@ public Builder clearContainerConcurrency() { 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() { @@ -2534,8 +2351,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2556,15 +2371,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(); @@ -2575,8 +2389,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2587,7 +2399,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; } @@ -2599,8 +2411,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2619,8 +2429,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2628,13 +2436,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.
      * 
@@ -2645,12 +2451,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.
      * 
@@ -2658,17 +2463,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_; @@ -2676,8 +2478,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
@@ -2686,13 +2486,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; @@ -2701,8 +2501,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
@@ -2711,14 +2509,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 { @@ -2726,8 +2525,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
@@ -2736,22 +2533,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
@@ -2760,18 +2555,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
@@ -2780,40 +2572,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.
@@ -2829,8 +2615,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2846,8 +2630,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2863,8 +2645,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2872,7 +2652,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();
@@ -2886,8 +2667,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.
@@ -2907,8 +2686,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2930,8 +2707,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.
@@ -2939,7 +2714,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();
@@ -2953,8 +2729,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.
@@ -2962,7 +2736,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());
@@ -2973,8 +2748,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.
@@ -2994,8 +2767,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3007,7 +2778,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);
@@ -3015,8 +2787,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3035,8 +2805,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3055,8 +2823,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3064,12 +2830,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.
@@ -3077,16 +2842,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.
@@ -3094,8 +2857,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 {
@@ -3103,8 +2866,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -3113,12 +2874,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.
@@ -3126,13 +2885,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.
@@ -3140,46 +2898,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.
      * 
@@ -3194,8 +2944,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3210,8 +2958,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3226,15 +2972,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(); @@ -3248,15 +2993,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()); @@ -3267,8 +3011,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.
      * 
@@ -3289,15 +3031,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(); @@ -3311,15 +3052,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()); @@ -3330,15 +3070,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()); @@ -3349,8 +3088,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.
      * 
@@ -3361,7 +3098,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); @@ -3369,8 +3107,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3388,8 +3124,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3407,44 +3141,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 { @@ -3452,8 +3181,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3461,62 +3188,54 @@ 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_; } - private boolean confidential_; + private boolean confidential_ ; /** - * - * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; - * * @return The confidential. */ @java.lang.Override @@ -3524,36 +3243,30 @@ public boolean getConfidential() { return confidential_; } /** - * - * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; - * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** - * - * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; - * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -3561,65 +3274,51 @@ public Builder clearConfidential() { 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. */ @@ -3627,24 +3326,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; @@ -3652,8 +3348,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
@@ -3661,13 +3355,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; @@ -3676,8 +3370,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
@@ -3685,14 +3377,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 { @@ -3700,8 +3393,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
@@ -3709,22 +3400,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
@@ -3732,18 +3421,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
@@ -3751,23 +3437,23 @@ 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; } - @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); } @@ -3777,12 +3463,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(); } @@ -3791,16 +3477,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; @@ -3815,4 +3501,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 bcd3b92..7f49247 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,52 +38,52 @@ 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.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + 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.
    * 
@@ -115,76 +92,70 @@ public interface RevisionTemplateOrBuilder */ 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.
    * 
* * map<string, string> annotations = 3; */ - java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + 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.
    * 
@@ -194,34 +165,26 @@ public interface RevisionTemplateOrBuilder 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.
@@ -232,45 +195,34 @@ public interface RevisionTemplateOrBuilder
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 7; - * * @return The containerConcurrency. */ int getContainerConcurrency(); /** - * - * *
    * 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.
    * 
@@ -280,8 +232,6 @@ public interface RevisionTemplateOrBuilder 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
@@ -290,13 +240,10 @@ public interface RevisionTemplateOrBuilder
    * 
* * 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
@@ -305,14 +252,12 @@ public interface RevisionTemplateOrBuilder
    * 
* * 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.
@@ -320,10 +265,9 @@ public interface RevisionTemplateOrBuilder
    *
    * 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.
@@ -333,8 +277,6 @@ public interface RevisionTemplateOrBuilder
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -344,8 +286,6 @@ public interface RevisionTemplateOrBuilder
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -353,10 +293,9 @@ public interface RevisionTemplateOrBuilder
    *
    * 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.
@@ -364,21 +303,19 @@ public interface RevisionTemplateOrBuilder
    *
    * 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.
    * 
@@ -387,8 +324,6 @@ public interface RevisionTemplateOrBuilder */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -397,67 +332,54 @@ public interface RevisionTemplateOrBuilder */ 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); /** - * - * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; - * * @return The confidential. */ boolean getConfidential(); /** - * - * *
    * 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
@@ -465,13 +387,10 @@ public interface RevisionTemplateOrBuilder
    * 
* * 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
@@ -479,8 +398,8 @@ public interface RevisionTemplateOrBuilder
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString getEncryptionKeyBytes(); + com.google.protobuf.ByteString + getEncryptionKeyBytes(); } 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..79d13a5 --- /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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" + + "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" + + "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" + + "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" + + ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" + + "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" + + "_environment\030\r \001(\0162).google.cloud.run.v2" + + ".ExecutionEnvironment\022>\n\016encryption_key\030" + + "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\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\001Bj\n\027com.google.c" + + "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/run/v2;runb\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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "ExecutionEnvironment", "EncryptionKey", }); + 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 ed5a8dd..c589f6a 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,59 +54,53 @@ 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) { throw e.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.
@@ -131,10 +108,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 @@ -143,15 +117,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.
@@ -159,18 +132,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 { @@ -181,15 +153,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 @@ -198,30 +167,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 { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,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_); } @@ -272,16 +241,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; } @@ -302,127 +272,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() @@ -430,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +412,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 @@ -471,8 +433,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(); @@ -483,39 +444,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; @@ -563,8 +523,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.
@@ -572,16 +530,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; @@ -590,8 +546,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.
@@ -599,17 +553,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 { @@ -617,8 +570,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.
@@ -626,25 +577,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.
@@ -652,21 +599,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.
@@ -674,19 +616,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; @@ -694,21 +634,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; @@ -717,22 +655,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 { @@ -740,71 +677,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); } @@ -814,12 +744,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(); } @@ -828,16 +758,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; @@ -852,4 +782,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 c94c0cc..6b0fa63 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,42 +57,40 @@ 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) {
       throw e.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_);
@@ -118,27 +99,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.
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secret. */ @java.lang.Override @@ -156,15 +131,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.
@@ -173,15 +147,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 { @@ -192,8 +167,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.
@@ -209,8 +182,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.
@@ -222,13 +193,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.
@@ -244,8 +213,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.
@@ -261,8 +228,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.
@@ -274,15 +239,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.
@@ -302,7 +266,6 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
    * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -311,7 +274,6 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,7 +285,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_); } @@ -346,10 +309,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; @@ -359,17 +324,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; } @@ -394,104 +361,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
@@ -500,23 +460,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()
@@ -524,17 +482,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();
@@ -552,9 +510,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
@@ -573,8 +531,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) {
@@ -595,39 +552,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;
@@ -658,10 +614,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_);
           }
@@ -698,13 +653,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.
@@ -713,13 +665,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; @@ -728,8 +680,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.
@@ -738,14 +688,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 { @@ -753,8 +704,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.
@@ -763,22 +712,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.
@@ -787,18 +734,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.
@@ -807,40 +751,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.
@@ -859,8 +797,6 @@ public java.util.List getItemsList() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -879,8 +815,6 @@ public int getItemsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -899,8 +833,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.
@@ -911,7 +843,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();
@@ -925,8 +858,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.
@@ -949,8 +880,6 @@ public Builder setItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -975,8 +904,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.
@@ -987,7 +914,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();
@@ -1001,8 +929,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.
@@ -1013,7 +939,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());
@@ -1024,8 +951,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.
@@ -1048,8 +973,6 @@ public Builder addItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1064,7 +987,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);
@@ -1072,8 +996,6 @@ public Builder addAllItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1095,8 +1017,6 @@ public Builder clearItems() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1118,8 +1038,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.
@@ -1130,12 +1048,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.
@@ -1146,16 +1063,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.
@@ -1166,8 +1081,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 {
@@ -1175,8 +1090,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.
@@ -1188,12 +1101,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.
@@ -1204,13 +1115,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.
@@ -1221,31 +1131,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.
@@ -1265,7 +1171,6 @@ public java.util.List getItemsBui
      * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -1273,8 +1178,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.
@@ -1294,19 +1197,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.
@@ -1326,18 +1226,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); } @@ -1347,12 +1246,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(); } @@ -1361,16 +1260,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; @@ -1385,4 +1284,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 71% 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 7bdd5f1..62e24ea 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,293 +73,257 @@ 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();
+
+            latestReadyRevision_ = s;
+            break;
+          }
+          case 274: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            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) {
       throw e.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_);
@@ -391,30 +338,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);
   }
@@ -422,8 +368,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
@@ -433,7 +377,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -442,15 +385,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
@@ -460,15 +402,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 { @@ -479,15 +422,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 @@ -496,30 +436,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 { @@ -530,15 +470,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 @@ -547,30 +484,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 { @@ -581,15 +518,12 @@ 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.
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -598,23 +532,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_; } @@ -623,8 +558,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -640,22 +573,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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.
@@ -672,12 +605,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.
@@ -694,16 +626,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    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.
@@ -720,11 +652,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -732,24 +665,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_;
   }
@@ -758,8 +691,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
@@ -771,22 +702,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
+
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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
@@ -799,12 +730,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
@@ -817,17 +747,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    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
@@ -840,11 +769,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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -854,15 +784,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 @@ -870,15 +796,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 @@ -886,14 +808,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() { @@ -903,15 +822,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 @@ -919,15 +834,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 @@ -935,14 +846,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() { @@ -952,15 +860,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 @@ -968,15 +872,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 @@ -984,14 +884,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() { @@ -1001,16 +898,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 @@ -1018,16 +911,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 @@ -1035,15 +924,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() { @@ -1053,14 +939,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 @@ -1069,29 +952,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 { @@ -1102,14 +985,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 @@ -1118,29 +998,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 { @@ -1151,14 +1031,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 @@ -1167,29 +1044,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 { @@ -1200,14 +1077,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 @@ -1216,29 +1090,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 { @@ -1249,8 +1123,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
@@ -1258,16 +1130,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
@@ -1275,22 +1143,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).
@@ -1299,16 +1162,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).
@@ -1317,11 +1176,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; @@ -1330,14 +1187,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 @@ -1345,25 +1199,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.
    * 
@@ -1378,16 +1225,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 @@ -1395,34 +1237,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() { @@ -1432,8 +1263,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
@@ -1447,8 +1276,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
@@ -1458,13 +1285,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
@@ -1478,8 +1303,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
@@ -1493,8 +1316,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
@@ -1504,15 +1325,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
@@ -1520,7 +1340,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 @@ -1531,8 +1350,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
@@ -1540,10 +1357,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 @@ -1551,8 +1365,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
@@ -1560,21 +1372,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
@@ -1582,9 +1387,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() { @@ -1594,8 +1397,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
@@ -1603,17 +1404,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
@@ -1621,18 +1418,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
@@ -1640,17 +1433,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
@@ -1658,17 +1447,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
@@ -1676,30 +1461,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 @@ -1708,33 +1487,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 { @@ -1745,17 +1522,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 @@ -1764,32 +1536,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 { @@ -1800,86 +1570,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( @@ -1890,14 +1640,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 @@ -1906,29 +1653,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 { @@ -1939,8 +1686,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.
@@ -1964,7 +1709,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1975,15 +1719,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 @@ -1992,30 +1733,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 { @@ -2024,7 +1765,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2036,7 +1776,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_); } @@ -2049,10 +1790,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()); } @@ -2077,8 +1826,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()) { @@ -2139,39 +1887,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_); @@ -2185,31 +1938,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_); @@ -2218,13 +1977,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_); @@ -2237,62 +1998,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; } @@ -2311,7 +2098,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(); @@ -2361,7 +2149,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(); @@ -2381,7 +2170,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(); @@ -2389,103 +2179,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.
@@ -2496,44 +2280,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);
     }
@@ -2543,19 +2328,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();
@@ -2657,9 +2442,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
@@ -2770,39 +2555,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;
@@ -2826,8 +2610,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());
       }
@@ -2886,10 +2672,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_);
           }
@@ -2919,10 +2704,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_);
           }
@@ -2954,10 +2738,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_);
           }
@@ -3002,13 +2785,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
@@ -3018,13 +2798,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; @@ -3033,8 +2813,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
@@ -3044,14 +2822,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 { @@ -3059,8 +2838,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
@@ -3070,22 +2847,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
@@ -3095,18 +2870,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
@@ -3116,16 +2888,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; @@ -3133,21 +2905,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; @@ -3156,22 +2926,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 { @@ -3179,64 +2948,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; @@ -3244,21 +3006,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; @@ -3267,22 +3027,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 { @@ -3290,80 +3049,70 @@ 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.
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -3371,58 +3120,53 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * 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.
      * 
* * 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(); @@ -3434,8 +3178,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3451,22 +3193,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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.
@@ -3483,12 +3225,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.
@@ -3505,17 +3246,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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.
@@ -3532,11 +3272,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3544,12 +3285,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.
@@ -3565,21 +3305,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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.
@@ -3595,19 +3337,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3623,29 +3362,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();
@@ -3657,8 +3397,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
@@ -3670,22 +3408,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
+
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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
@@ -3698,12 +3436,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
@@ -3716,17 +3453,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3739,11 +3475,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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3751,12 +3488,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
@@ -3768,21 +3504,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3794,19 +3532,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -3818,65 +3553,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) { @@ -3892,17 +3611,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(); @@ -3913,21 +3629,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; } @@ -3939,15 +3651,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) { @@ -3961,64 +3669,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_; @@ -4026,58 +3718,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) { @@ -4093,17 +3766,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(); @@ -4114,21 +3784,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; } @@ -4140,15 +3806,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) { @@ -4162,64 +3824,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_; @@ -4227,58 +3873,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) { @@ -4294,17 +3921,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(); @@ -4315,21 +3939,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; } @@ -4341,15 +3961,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) { @@ -4363,64 +3979,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_; @@ -4428,61 +4028,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) { @@ -4498,18 +4079,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(); @@ -4520,22 +4098,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; } @@ -4547,16 +4121,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) { @@ -4570,67 +4140,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_; @@ -4638,20 +4192,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; @@ -4660,21 +4212,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 { @@ -4682,61 +4233,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; @@ -4744,20 +4288,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; @@ -4766,21 +4308,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 { @@ -4788,61 +4329,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; @@ -4850,20 +4384,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; @@ -4872,21 +4404,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 { @@ -4894,61 +4425,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; @@ -4956,20 +4480,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; @@ -4978,21 +4500,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 { @@ -5000,61 +4521,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; @@ -5062,8 +4576,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
@@ -5071,16 +4583,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
@@ -5088,19 +4596,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
@@ -5108,19 +4613,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
@@ -5128,7 +4629,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. */ @@ -5136,14 +4636,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
@@ -5151,11 +4649,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; @@ -5163,8 +4660,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).
@@ -5173,16 +4668,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).
@@ -5191,19 +4682,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).
@@ -5212,7 +4700,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ @java.lang.Override @@ -5222,8 +4709,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).
@@ -5232,7 +4717,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -5240,14 +4724,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).
@@ -5256,11 +4738,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; @@ -5268,47 +4749,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.
      * 
@@ -5329,8 +4797,6 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5349,8 +4815,6 @@ public Builder setBinaryAuthorization( return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5361,9 +4825,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; } @@ -5375,8 +4837,6 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5395,8 +4855,6 @@ public Builder clearBinaryAuthorization() { return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5404,13 +4862,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.
      * 
@@ -5421,14 +4877,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.
      * 
@@ -5436,17 +4889,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_; @@ -5454,58 +4904,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) { @@ -5521,17 +4952,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(); @@ -5542,23 +4970,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; } @@ -5570,15 +4992,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) { @@ -5592,88 +5010,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
@@ -5690,8 +5086,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
@@ -5708,8 +5102,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
@@ -5726,8 +5118,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
@@ -5736,7 +5126,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();
@@ -5750,8 +5141,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
@@ -5772,8 +5161,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
@@ -5796,8 +5183,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
@@ -5806,7 +5191,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();
@@ -5820,8 +5206,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
@@ -5830,7 +5214,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());
@@ -5841,8 +5226,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
@@ -5863,8 +5246,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
@@ -5877,7 +5258,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);
@@ -5885,8 +5267,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
@@ -5906,8 +5286,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
@@ -5927,8 +5305,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
@@ -5937,12 +5313,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
@@ -5951,16 +5326,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
@@ -5969,8 +5342,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 {
@@ -5978,8 +5351,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
@@ -5989,12 +5360,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
@@ -6003,13 +5372,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
@@ -6018,31 +5386,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
@@ -6050,7 +5414,6 @@ public java.util.List getTrafficB
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -6058,8 +5421,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
@@ -6067,19 +5428,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
@@ -6087,11 +5445,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; @@ -6099,13 +5456,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
@@ -6113,18 +5465,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
@@ -6132,24 +5479,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
@@ -6157,9 +5497,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) { @@ -6175,8 +5513,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
@@ -6184,11 +5520,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(); @@ -6199,8 +5534,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
@@ -6208,17 +5541,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; } @@ -6230,8 +5559,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
@@ -6239,9 +5566,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) { @@ -6255,8 +5580,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
@@ -6264,18 +5587,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
@@ -6283,22 +5602,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
@@ -6306,46 +5620,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
@@ -6353,9 +5656,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) { @@ -6365,8 +5666,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
@@ -6374,9 +5673,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) { @@ -6386,8 +5683,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
@@ -6395,9 +5690,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) { @@ -6407,8 +5700,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
@@ -6416,11 +5707,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(); @@ -6434,8 +5724,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
@@ -6443,9 +5731,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) { @@ -6459,8 +5745,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
@@ -6468,9 +5752,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) { @@ -6486,8 +5768,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
@@ -6495,11 +5775,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(); @@ -6513,8 +5792,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
@@ -6522,11 +5799,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()); @@ -6537,8 +5813,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
@@ -6546,9 +5820,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) { @@ -6562,8 +5834,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
@@ -6571,15 +5841,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); @@ -6587,8 +5856,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
@@ -6596,9 +5863,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) { @@ -6611,8 +5876,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
@@ -6620,9 +5883,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) { @@ -6635,8 +5896,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
@@ -6644,16 +5903,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
@@ -6661,20 +5917,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
@@ -6682,12 +5934,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 { @@ -6695,8 +5945,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
@@ -6704,17 +5952,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
@@ -6722,17 +5966,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
@@ -6740,26 +5981,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_; @@ -6767,24 +6004,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; @@ -6793,25 +6026,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 { @@ -6819,73 +6049,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; @@ -6893,23 +6110,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; @@ -6918,24 +6131,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 { @@ -6943,104 +6153,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) { @@ -7050,17 +6238,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) { @@ -7070,17 +6254,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) { @@ -7090,17 +6270,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) { @@ -7117,17 +6293,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) { @@ -7141,17 +6313,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) { @@ -7167,17 +6335,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) { @@ -7194,17 +6358,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) { @@ -7218,17 +6378,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) { @@ -7242,23 +6398,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); @@ -7266,17 +6419,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) { @@ -7289,17 +6438,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) { @@ -7312,58 +6457,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 { @@ -7371,69 +6503,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(), @@ -7445,20 +6559,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; @@ -7467,21 +6579,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 { @@ -7489,70 +6600,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.
@@ -7576,7 +6678,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -7584,8 +6685,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.
@@ -7609,19 +6708,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.
@@ -7645,11 +6741,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; @@ -7657,21 +6752,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; @@ -7680,22 +6773,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 { @@ -7703,71 +6795,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); } @@ -7777,12 +6862,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(); } @@ -7791,16 +6876,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; @@ -7815,4 +6900,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 79% 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 a710e51..584cf8e 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,82 +30,67 @@ 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.
    * 
* * 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.
@@ -144,8 +108,6 @@ public interface ServiceOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -161,13 +123,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.
@@ -183,10 +147,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.
@@ -202,10 +165,11 @@ public interface ServiceOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -221,11 +185,11 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -239,8 +203,6 @@ public interface ServiceOrBuilder
    */
   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
@@ -252,13 +214,15 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -270,10 +234,9 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -285,10 +248,11 @@ public interface ServiceOrBuilder
    *
    * map<string, string> annotations = 6;
    */
-  java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getAnnotationsOrDefault(
+      java.lang.String key,
+      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
@@ -300,266 +264,202 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -567,13 +467,10 @@ public interface ServiceOrBuilder
    * 
* * .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
@@ -581,14 +478,11 @@ public interface ServiceOrBuilder
    * 
* * .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).
@@ -597,13 +491,10 @@ public interface ServiceOrBuilder
    * 
* * .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).
@@ -612,38 +503,29 @@ public interface ServiceOrBuilder
    * 
* * .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.
    * 
@@ -653,49 +535,33 @@ public interface ServiceOrBuilder 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
@@ -704,10 +570,9 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -718,8 +583,6 @@ public interface ServiceOrBuilder
    */
   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
@@ -730,8 +593,6 @@ public interface ServiceOrBuilder
    */
   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
@@ -740,11 +601,9 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -753,11 +612,10 @@ public interface ServiceOrBuilder
    *
    * 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
@@ -765,14 +623,11 @@ public interface ServiceOrBuilder
    * 
* * 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
@@ -780,16 +635,11 @@ public interface ServiceOrBuilder
    * 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
@@ -797,16 +647,11 @@ public interface ServiceOrBuilder
    * 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
@@ -814,15 +659,11 @@ public interface ServiceOrBuilder
    * 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
@@ -830,14 +671,11 @@ public interface ServiceOrBuilder
    * 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
@@ -845,14 +683,10 @@ public interface ServiceOrBuilder
    * 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
@@ -860,14 +694,10 @@ public interface ServiceOrBuilder
    * 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
@@ -875,14 +705,11 @@ public interface ServiceOrBuilder
    * 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
@@ -890,176 +717,132 @@ public interface ServiceOrBuilder
    * 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.
@@ -1083,35 +866,29 @@ public interface ServiceOrBuilder
    * 
* * 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..6d74b92 --- /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,281 @@ +// 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#google/cloud/run/v2/condition.proto\032" + + "+google/cloud/run/v2/revision_template.p" + + "roto\032(google/cloud/run/v2/traffic_target" + + ".proto\032)google/cloud/run/v2/vendor_setti" + + "ngs.proto\032\036google/iam/v1/iam_policy.prot" + + "o\032\032google/iam/v1/policy.proto\032#google/lo" + + "ngrunning/operations.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" + + "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" + + "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" + + "ud.run.v2.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\"\251\001\n\024Updat" + + "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" + + "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + + "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" + + "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" + + "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" + + ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" + + "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032run.googleapis.com/Service\"m\n\024DeleteSer" + + "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" + + "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" + + "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" + + "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\n \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" + + "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" + + "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." + + "google.cloud.run.v2.IngressTraffic\022-\n\014la" + + "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" + + "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" + + ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" + + "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" + + "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" + + "e.cloud.run.v2.TrafficTarget\022 \n\023observed" + + "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + + "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + + "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + + "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + + "com/Revision\022D\n\027latest_created_revision\030" + + "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + + "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + + "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + + "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" + + "A[\n\032run.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" + + "vice\022).google.cloud.run.v2.CreateService" + + "Request\032\035.google.longrunning.Operation\"n" + + "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" + + "/*}/services:\007service\332A\031parent,service,s" + + "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" + + "rvice\022&.google.cloud.run.v2.GetServiceRe" + + "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" + + "\223\002.\022,/v2/{name=projects/*/locations/*/se" + + "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" + + "le.cloud.run.v2.ListServicesRequest\032).go" + + "ogle.cloud.run.v2.ListServicesResponse\"=" + + "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" + + "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" + + ").google.cloud.run.v2.UpdateServiceReque" + + "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + + "?24/v2/{service.name=projects/*/location" + + "s/*/services/*}:\007service\332A\023service,updat" + + "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" + + "rvice\022).google.cloud.run.v2.DeleteServic" + + "eRequest\032\035.google.longrunning.Operation\"" + + "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" + + "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" + + "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" + + "\323\344\223\002?\022=/v2/{resource=projects/*/location" + + "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" + + "esource=projects/*/locations/*/services/" + + "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" + + "s\022(.google.iam.v1.TestIamPermissionsRequ" + + "est\032).google.iam.v1.TestIamPermissionsRe" + + "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" + + "/locations/*/services/*}:testIamPermissi" + + "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformBa" + + "\n\027com.google.cloud.run.v2B\014ServiceProtoP" + + "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 fbe4964..0ef80e2 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,116 +56,97 @@ 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) {
       throw e.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 @@ -191,30 +155,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 { @@ -225,15 +189,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 @@ -244,15 +205,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 @@ -261,30 +219,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 { @@ -293,7 +251,6 @@ public com.google.protobuf.ByteString getTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,11 +262,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_)) { @@ -330,17 +285,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_); @@ -353,7 +307,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); @@ -361,9 +315,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; } @@ -388,103 +345,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.
@@ -492,23 +443,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()
@@ -516,15 +465,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();
@@ -540,9 +490,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
@@ -561,8 +511,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_;
@@ -575,39 +524,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;
@@ -661,67 +609,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. */ @@ -729,24 +661,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; @@ -754,21 +683,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; @@ -777,22 +704,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 { @@ -800,80 +726,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 @@ -881,38 +797,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; @@ -920,21 +830,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; @@ -943,22 +851,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 { @@ -966,71 +873,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); } @@ -1040,12 +940,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(); } @@ -1054,16 +954,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; @@ -1078,4 +978,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 602738c..e8e6bb2 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,122 +56,102 @@ 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) { throw e.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 @@ -197,29 +160,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 { @@ -230,14 +193,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 @@ -248,14 +208,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 @@ -264,29 +221,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 { @@ -297,14 +254,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 @@ -313,29 +267,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 { @@ -344,7 +298,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,11 +309,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_)) { @@ -384,17 +335,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_); @@ -410,19 +360,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; } @@ -449,127 +402,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() @@ -577,15 +521,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -603,9 +548,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 @@ -624,8 +569,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_; @@ -639,39 +583,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; @@ -729,67 +672,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. */ @@ -797,24 +724,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; @@ -822,20 +746,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; @@ -844,21 +766,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 { @@ -866,76 +787,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 @@ -943,36 +854,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; @@ -980,20 +885,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; @@ -1002,21 +905,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 { @@ -1024,61 +926,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; @@ -1086,20 +981,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; @@ -1108,21 +1001,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 { @@ -1130,68 +1022,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); } @@ -1201,12 +1086,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(); } @@ -1215,16 +1100,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; @@ -1239,4 +1124,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 90b5d1f..159e5af 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,92 +52,82 @@ 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 10: { + com.google.cloud.run.v2.Service.Builder subBuilder = null; + if (service_ != null) { + subBuilder = service_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + 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 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 32: - { - allowMissing_ = input.readBool(); - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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) { throw e.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 @@ -161,15 +135,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 @@ -177,14 +147,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() { @@ -194,14 +161,11 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,14 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -224,8 +185,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -240,15 +199,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { 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 @@ -259,8 +215,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
@@ -268,7 +222,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -277,7 +230,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +241,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()); } @@ -312,16 +265,20 @@ 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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } 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; @@ -331,24 +288,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) 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; } @@ -369,135 +329,128 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().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() @@ -505,15 +458,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(); @@ -537,9 +491,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 @@ -558,8 +512,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 { @@ -580,39 +533,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; @@ -664,35 +616,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() { @@ -703,14 +644,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) { @@ -726,16 +664,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(); @@ -746,20 +682,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; } @@ -771,14 +704,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) { @@ -792,59 +722,48 @@ 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_; @@ -852,47 +771,34 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -913,15 +819,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -932,8 +837,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -944,7 +847,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -956,8 +859,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -976,8 +877,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -985,13 +884,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1002,14 +899,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1017,33 +911,27 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - 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 @@ -1051,47 +939,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
@@ -1099,7 +979,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -1107,8 +986,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
@@ -1116,19 +993,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
@@ -1136,18 +1010,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); } @@ -1157,12 +1030,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(); } @@ -1171,16 +1044,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; @@ -1195,4 +1068,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 70% 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 f58d267..762d65e 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,93 +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/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(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
@@ -97,22 +62,17 @@ public interface UpdateServiceRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * 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
@@ -120,7 +80,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..a3091cf --- /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,97 @@ +// 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*\200\001\n" + + "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" + + "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" + + "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" + + "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" + + "orSettingsProtoP\001Z6google.golang.org/gen" + + "proto/googleapis/cloud/run/v2;runb\006proto" + + "3" + }; + 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 d6fcd28..ecc9703 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,70 +55,63 @@ 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) {
       throw e.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 @@ -144,29 +120,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 { @@ -177,15 +153,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 @@ -194,30 +167,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 { @@ -228,8 +201,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
@@ -247,7 +218,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -256,7 +226,6 @@ public int getMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +237,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_); } @@ -294,7 +264,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; @@ -304,16 +275,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; } @@ -336,103 +310,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.
@@ -440,23 +408,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()
@@ -464,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();
@@ -486,9 +453,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
@@ -507,8 +474,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_;
@@ -520,39 +486,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;
@@ -603,20 +568,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; @@ -625,21 +588,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 { @@ -647,61 +609,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; @@ -709,21 +664,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; @@ -732,22 +685,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 { @@ -755,73 +707,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
@@ -839,7 +782,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -847,8 +789,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
@@ -866,19 +806,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
@@ -896,18 +833,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); } @@ -917,12 +853,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(); } @@ -931,16 +867,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; @@ -955,4 +891,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 a83f1bb..7ab833e 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,90 +53,81 @@ 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) { throw e.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; } @@ -169,37 +143,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 @@ -208,29 +176,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 { @@ -240,15 +208,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 @@ -256,27 +221,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
@@ -287,15 +247,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
@@ -303,7 +261,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 @@ -311,8 +268,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
@@ -320,19 +275,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
@@ -344,13 +296,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;
@@ -362,7 +313,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_);
     }
@@ -385,14 +337,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;
@@ -402,21 +352,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:
@@ -451,123 +404,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); } @@ -577,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(); @@ -597,9 +544,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 @@ -643,39 +590,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; @@ -689,20 +635,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(); @@ -732,12 +675,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() { @@ -747,22 +690,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; @@ -771,21 +713,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 { @@ -793,81 +734,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 @@ -875,15 +803,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 @@ -901,8 +826,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
@@ -924,8 +847,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
@@ -933,7 +854,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();
@@ -944,8 +866,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
@@ -955,13 +875,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;
         }
@@ -976,8 +893,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
@@ -1002,8 +917,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
@@ -1015,8 +928,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
@@ -1036,8 +947,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
@@ -1046,38 +955,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
@@ -1085,7 +983,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 @@ -1093,8 +990,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
@@ -1102,7 +997,6 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1120,8 +1014,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
@@ -1144,8 +1036,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
@@ -1166,8 +1056,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
@@ -1178,13 +1066,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;
         }
@@ -1199,8 +1084,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
@@ -1226,8 +1109,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
@@ -1240,8 +1121,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
@@ -1262,8 +1141,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
@@ -1273,32 +1150,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);
     }
 
@@ -1308,12 +1179,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();
   }
@@ -1322,16 +1193,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;
@@ -1346,4 +1217,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 72%
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 fc02e02..80d67dd 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,65 +54,58 @@ 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) { throw e.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 @@ -138,29 +114,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 { @@ -171,8 +147,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
@@ -182,7 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ @java.lang.Override @@ -191,15 +164,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
@@ -209,15 +181,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 { @@ -226,7 +199,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +210,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_); } @@ -268,15 +241,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; } @@ -297,126 +272,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() @@ -424,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +412,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 @@ -476,39 +444,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; @@ -556,20 +523,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; @@ -578,21 +543,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 { @@ -600,61 +564,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; @@ -662,8 +619,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
@@ -673,13 +628,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; @@ -688,8 +643,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
@@ -699,14 +652,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 { @@ -714,8 +668,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
@@ -725,22 +677,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
@@ -750,18 +700,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
@@ -771,23 +718,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); } @@ -797,12 +744,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(); } @@ -811,16 +758,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; @@ -835,4 +782,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 7bfcdf2..0493935 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,67 +57,60 @@ 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) {
       throw e.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
      * 
@@ -143,8 +119,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ VPC_EGRESS_UNSPECIFIED(0), /** - * - * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -153,8 +127,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ ALL_TRAFFIC(1), /** - * - * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -166,8 +138,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified
      * 
@@ -176,8 +146,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.
      * 
@@ -186,8 +154,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.
      * 
@@ -196,6 +162,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( @@ -220,49 +187,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; @@ -282,15 +249,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 @@ -299,30 +263,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 { @@ -333,41 +297,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; @@ -379,7 +333,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_); } @@ -399,7 +354,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; @@ -409,14 +365,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; @@ -438,103 +395,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
@@ -544,23 +495,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()
@@ -568,15 +517,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();
@@ -588,9 +538,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
@@ -620,39 +570,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;
@@ -699,21 +648,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; @@ -722,22 +669,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 { @@ -745,64 +691,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; @@ -810,65 +749,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. */ @@ -876,31 +801,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); } @@ -910,12 +832,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(); } @@ -924,16 +846,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; @@ -948,4 +870,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/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 498ac89..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,131 +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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" - + "gle.cloud.run.v2.Condition.InternalReaso" - + "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" - + "gle.cloud.run.v2.Condition.DomainMapping" - + "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" - + "le.cloud.run.v2.Condition.RevisionReason" - + "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" - + "oud.run.v2.Condition.ExecutionReasonH\000\"\177" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" - + "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" - + "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" - + "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" - + "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" - + "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" - + "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" - + "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" - + "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" - + "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" - + "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" - + "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" - + "CK_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\025W" - + "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" - + "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" - + "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" - + "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" - + "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" - + "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" - + "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" - + "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" - + "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" - + "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" - + "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" - + "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" - + "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" - + "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" - + "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" - + "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" - + "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" - + "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" - + "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" - + "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" - + "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" - + "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" - + "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" - + "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" - + "easonsBc\n\027com.google.cloud.run.v2B\016Condi" - + "tionProtoP\001Z6google.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.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", - "InternalReason", - "DomainMappingReason", - "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 26c60b3..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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" - + "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" - + "g.org/genproto/googleapis/cloud/run/v2;r" - + "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" - + "\022Sprojects/{project}/locations/{location" - + "}/keyRings/{key_ring}/cryptoKeys/{crypto" - + "_key}\352AJ\n#secretmanager.googleapis.com/S" - + "ecret\022#projects/{project}/secrets/{secre" - + "t}\352Ad\n*secretmanager.googleapis.com/Secr" - + "etVersion\0226projects/{project}/secrets/{s" - + "ecret}/versions/{version}\352Ad\n\"vpcaccess." - + "googleapis.com/Connector\022>projects/{proj" - + "ect}/locations/{location}/connectors/{co" - + "nnector}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[] { - "Connections", - }); - 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 6cc1aad..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,265 +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#google/cloud/run/v2/condition.proto" - + "\032!google/cloud/run/v2/k8s.min.proto\032)goo" - + "gle/cloud/run/v2/vendor_settings.proto\032#" - + "google/longrunning/operations.proto\032\036goo" - + "gle/protobuf/duration.proto\032\037google/prot" - + "obuf/timestamp.proto\"G\n\022GetRevisionReque" - + "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" - + "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" - + "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" - + "oogle.cloud.run.v2.Revision\022\027\n\017next_page" - + "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" - + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" - + "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" - + "\003 \001(\t\"\314\n\n\010Revision\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.R" - + "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" - + "2..google.cloud.run.v2.Revision.Annotati" - + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "delete_time\030\010 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" - + "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" - + "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" - + "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" - + ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" - + "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" - + "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" - + "\031.google.protobuf.Duration\022\027\n\017service_ac" - + "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" - + ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" - + "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" - + "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" - + "(\0162).google.cloud.run.v2.ExecutionEnviro" - + "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" - + "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" - + "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" - + "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" - + "rved_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\340A\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" - + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" - + "\022Oprojects/{project}/locations/{location" - + "}/services/{service}/revisions/{revision" - + "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" - + "gle.cloud.run.v2.GetRevisionRequest\032\035.go" - + "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" - + "{name=projects/*/locations/*/services/*/" - + "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." - + "google.cloud.run.v2.ListRevisionsRequest" - + "\032*.google.cloud.run.v2.ListRevisionsResp" - + "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" - + "ations/*/services/*}/revisions\332A\006parent\022" - + "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" - + ".DeleteRevisionRequest\032\035.google.longrunn" - + "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" - + "s/*/locations/*/services/*/revisions/*}\332" - + "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformBb\n\027com.google.clou" - + "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.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", - "ContainerConcurrency", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "Confidential", - "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.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.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 ef62fbd..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ /dev/null @@ -1,137 +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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" - + "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" - + "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" - + "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" - + ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" - + "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" - + "_environment\030\r \001(\0162).google.cloud.run.v2" - + ".ExecutionEnvironment\022>\n\016encryption_key\030" - + "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" - + "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\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\001Bj\n\027com.google.c" - + "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/run/v2;runb\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", - "ContainerConcurrency", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "Confidential", - "ExecutionEnvironment", - "EncryptionKey", - }); - 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 b941a5b..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,331 +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#google/cloud/run/v2/condition.proto\032" - + "+google/cloud/run/v2/revision_template.p" - + "roto\032(google/cloud/run/v2/traffic_target" - + ".proto\032)google/cloud/run/v2/vendor_setti" - + "ngs.proto\032\036google/iam/v1/iam_policy.prot" - + "o\032\032google/iam/v1/policy.proto\032#google/lo" - + "ngrunning/operations.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" - + "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" - + "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" - + "ud.run.v2.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\"\251\001\n\024Updat" - + "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" - + "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" - + "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" - + "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" - + "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" - + "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" - + ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" - + "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" - + "\032run.googleapis.com/Service\"m\n\024DeleteSer" - + "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" - + "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" - + "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" - + "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" - + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "expire_time\030\n \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" - + "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" - + "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." - + "google.cloud.run.v2.IngressTraffic\022-\n\014la" - + "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" - + "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" - + ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" - + "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" - + "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" - + "e.cloud.run.v2.TrafficTarget\022 \n\023observed" - + "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" - + "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" - + "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" - + "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" - + "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." - + "com/Revision\022D\n\027latest_created_revision\030" - + "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" - + "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" - + "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" - + "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" - + "A[\n\032run.googleapis.com/Service\022:projects" - + "/{project}/locations/{location}/services" - + "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" - + "vice\022).google.cloud.run.v2.CreateService" - + "Request\032\035.google.longrunning.Operation\"n" - + "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" - + "/*}/services:\007service\332A\031parent,service,s" - + "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" - + "rvice\022&.google.cloud.run.v2.GetServiceRe" - + "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" - + "\223\002.\022,/v2/{name=projects/*/locations/*/se" - + "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" - + "le.cloud.run.v2.ListServicesRequest\032).go" - + "ogle.cloud.run.v2.ListServicesResponse\"=" - + "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" - + "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" - + ").google.cloud.run.v2.UpdateServiceReque" - + "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" - + "?24/v2/{service.name=projects/*/location" - + "s/*/services/*}:\007service\332A\023service,updat" - + "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" - + "rvice\022).google.cloud.run.v2.DeleteServic" - + "eRequest\032\035.google.longrunning.Operation\"" - + "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" - + "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" - + "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" - + "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" - + "\323\344\223\002?\022=/v2/{resource=projects/*/location" - + "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" - + "olicy\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" - + "esource=projects/*/locations/*/services/" - + "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" - + "s\022(.google.iam.v1.TestIamPermissionsRequ" - + "est\032).google.iam.v1.TestIamPermissionsRe" - + "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" - + "/locations/*/services/*}:testIamPermissi" - + "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformBa" - + "\n\027com.google.cloud.run.v2B\014ServiceProtoP" - + "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 7bd1d6a..0000000 --- a/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,114 +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*\200\001\n" - + "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" - + "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" - + "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" - + "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" - + "orSettingsProtoP\001Z6google.golang.org/gen" - + "proto/googleapis/cloud/run/v2;runb\006proto" - + "3" - }; - 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 6f6e53f252e7a64098e0476001588c2f3642642d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 19 Apr 2022 21:31:46 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/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 - .../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 .../cloud/run/v2/RevisionsClientTest.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 | 106 - .../run/v2/GetRevisionRequestOrBuilder.java | 33 - .../run/v2/GetServiceRequestOrBuilder.java | 31 - .../com/google/cloud/run/v2/K8sMinProto.java | 226 -- .../google/cloud/run/v2/RevisionProto.java | 219 -- .../cloud/run/v2/RevisionTemplateProto.java | 108 - .../com/google/cloud/run/v2/ServiceProto.java | 281 -- .../cloud/run/v2/TrafficTargetProto.java | 81 - .../cloud/run/v2/VendorSettingsProto.java | 97 - .../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 | 1686 +++++--- .../cloud/run/v2/ConditionOrBuilder.java | 101 +- .../google/cloud/run/v2/ConditionProto.java | 131 + .../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 | 53 +- .../com/google/cloud/run/v2/Revision.java | 2975 ++++++++------ .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 349 +- .../google/cloud/run/v2/RevisionProto.java | 265 ++ .../google/cloud/run/v2/RevisionScaling.java | 290 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1682 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 183 +- .../cloud/run/v2/RevisionTemplateProto.java | 137 + .../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 | 429 ++- .../com/google/cloud/run/v2/ServiceProto.java | 331 ++ .../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 | 517 ++- .../run/v2/UpdateServiceRequestOrBuilder.java | 49 +- .../cloud/run/v2/VendorSettingsProto.java | 114 + .../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 113 files changed, 18435 insertions(+), 11601 deletions(-) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (97%) 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/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/RevisionsClientTest.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 (72%) 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 (77%) 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 (86%) 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 (69%) 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 (69%) 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 (68%) 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 (65%) 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 (65%) 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 (71%) 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 (71%) 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 (79%) 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 (70%) 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 (72%) 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%) 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 97% 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 30549ca..f00635b 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 @@ -58,13 +58,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. *
* @@ -552,7 +552,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( @@ -602,7 +605,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 113e42b..5dc170f 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 @@ -28,7 +28,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; @@ -44,9 +43,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 c47f9f8..161350b 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. *
* @@ -953,7 +953,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( @@ -1002,7 +1005,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 66e8db2..5c4bf58 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 @@ -28,7 +28,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; @@ -49,9 +48,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 653d041..e625f97 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 @@ -36,7 +36,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 4be1b7c..d408f9a 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 @@ -43,7 +43,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/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 a9b3a5c..a8c03cc 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 @@ -66,9 +66,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 d54deac..ff84c65 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 @@ -73,9 +73,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/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/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 7cde181..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,106 +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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" + - "gle.cloud.run.v2.Condition.InternalReaso" + - "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" + - "gle.cloud.run.v2.Condition.DomainMapping" + - "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" + - "le.cloud.run.v2.Condition.RevisionReason" + - "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" + - "oud.run.v2.Condition.ExecutionReasonH\000\"\177" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" + - "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" + - "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" + - "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + - "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" + - "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" + - "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" + - "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" + - "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" + - "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" + - "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" + - "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" + - "CK_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\025W" + - "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" + - "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" + - "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" + - "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" + - "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" + - "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" + - "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" + - "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" + - "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" + - "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" + - "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" + - "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" + - "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" + - "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" + - "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" + - "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" + - "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" + - "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" + - "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" + - "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" + - "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" + - "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" + - "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" + - "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" + - "easonsBc\n\027com.google.cloud.run.v2B\016Condi" + - "tionProtoP\001Z6google.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.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", "InternalReason", "DomainMappingReason", "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 55b8a68..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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" + - "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" + - "g.org/genproto/googleapis/cloud/run/v2;r" + - "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" + - "\022Sprojects/{project}/locations/{location" + - "}/keyRings/{key_ring}/cryptoKeys/{crypto" + - "_key}\352AJ\n#secretmanager.googleapis.com/S" + - "ecret\022#projects/{project}/secrets/{secre" + - "t}\352Ad\n*secretmanager.googleapis.com/Secr" + - "etVersion\0226projects/{project}/secrets/{s" + - "ecret}/versions/{version}\352Ad\n\"vpcaccess." + - "googleapis.com/Connector\022>projects/{proj" + - "ect}/locations/{location}/connectors/{co" + - "nnector}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[] { "Connections", }); - 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 c4c0ccb..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,219 +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#google/cloud/run/v2/condition.proto" + - "\032!google/cloud/run/v2/k8s.min.proto\032)goo" + - "gle/cloud/run/v2/vendor_settings.proto\032#" + - "google/longrunning/operations.proto\032\036goo" + - "gle/protobuf/duration.proto\032\037google/prot" + - "obuf/timestamp.proto\"G\n\022GetRevisionReque" + - "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" + - "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + - "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" + - "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" + - "oogle.cloud.run.v2.Revision\022\027\n\017next_page" + - "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" + - "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" + - "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" + - "\003 \001(\t\"\314\n\n\010Revision\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.R" + - "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" + - "2..google.cloud.run.v2.Revision.Annotati" + - "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "delete_time\030\010 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" + - "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" + - "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" + - "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" + - ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" + - "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" + - "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" + - "\031.google.protobuf.Duration\022\027\n\017service_ac" + - "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" + - ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" + - "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" + - "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" + - "(\0162).google.cloud.run.v2.ExecutionEnviro" + - "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" + - "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" + - "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" + - "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + - "rved_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\340A\003\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" + - "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" + - "\022Oprojects/{project}/locations/{location" + - "}/services/{service}/revisions/{revision" + - "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" + - "gle.cloud.run.v2.GetRevisionRequest\032\035.go" + - "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" + - "{name=projects/*/locations/*/services/*/" + - "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." + - "google.cloud.run.v2.ListRevisionsRequest" + - "\032*.google.cloud.run.v2.ListRevisionsResp" + - "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" + - "ations/*/services/*}/revisions\332A\006parent\022" + - "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" + - ".DeleteRevisionRequest\032\035.google.longrunn" + - "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" + - "s/*/locations/*/services/*/revisions/*}\332" + - "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformBb\n\027com.google.clou" + - "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "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.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.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 79d13a5..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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" + - "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" + - "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" + - "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" + - ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" + - "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" + - "_environment\030\r \001(\0162).google.cloud.run.v2" + - ".ExecutionEnvironment\022>\n\016encryption_key\030" + - "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + - "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\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\001Bj\n\027com.google.c" + - "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" + - "ogle.golang.org/genproto/googleapis/clou" + - "d/run/v2;runb\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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "ExecutionEnvironment", "EncryptionKey", }); - 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 6d74b92..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,281 +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#google/cloud/run/v2/condition.proto\032" + - "+google/cloud/run/v2/revision_template.p" + - "roto\032(google/cloud/run/v2/traffic_target" + - ".proto\032)google/cloud/run/v2/vendor_setti" + - "ngs.proto\032\036google/iam/v1/iam_policy.prot" + - "o\032\032google/iam/v1/policy.proto\032#google/lo" + - "ngrunning/operations.proto\032 google/proto" + - "buf/field_mask.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" + - "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" + - "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" + - "ud.run.v2.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\"\251\001\n\024Updat" + - "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" + - "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + - "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" + - "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" + - "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" + - "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" + - ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" + - "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + - "\032run.googleapis.com/Service\"m\n\024DeleteSer" + - "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" + - "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" + - "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" + - "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" + - "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "expire_time\030\n \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" + - "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" + - "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." + - "google.cloud.run.v2.IngressTraffic\022-\n\014la" + - "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" + - "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" + - ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" + - "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" + - "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" + - "e.cloud.run.v2.TrafficTarget\022 \n\023observed" + - "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + - "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + - "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + - "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + - "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + - "com/Revision\022D\n\027latest_created_revision\030" + - "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + - "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + - "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + - "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" + - "A[\n\032run.googleapis.com/Service\022:projects" + - "/{project}/locations/{location}/services" + - "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" + - "vice\022).google.cloud.run.v2.CreateService" + - "Request\032\035.google.longrunning.Operation\"n" + - "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" + - "/*}/services:\007service\332A\031parent,service,s" + - "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" + - "rvice\022&.google.cloud.run.v2.GetServiceRe" + - "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" + - "\223\002.\022,/v2/{name=projects/*/locations/*/se" + - "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" + - "le.cloud.run.v2.ListServicesRequest\032).go" + - "ogle.cloud.run.v2.ListServicesResponse\"=" + - "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" + - "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" + - ").google.cloud.run.v2.UpdateServiceReque" + - "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + - "?24/v2/{service.name=projects/*/location" + - "s/*/services/*}:\007service\332A\023service,updat" + - "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" + - "rvice\022).google.cloud.run.v2.DeleteServic" + - "eRequest\032\035.google.longrunning.Operation\"" + - "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" + - "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" + - "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + - "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" + - "\323\344\223\002?\022=/v2/{resource=projects/*/location" + - "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" + - "olicy\022\".google.iam.v1.SetIamPolicyReques" + - "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" + - "esource=projects/*/locations/*/services/" + - "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" + - "s\022(.google.iam.v1.TestIamPermissionsRequ" + - "est\032).google.iam.v1.TestIamPermissionsRe" + - "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" + - "/locations/*/services/*}:testIamPermissi" + - "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformBa" + - "\n\027com.google.cloud.run.v2B\014ServiceProtoP" + - "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 a3091cf..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,97 +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*\200\001\n" + - "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" + - "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" + - "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" + - "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" + - "orSettingsProtoP\001Z6google.golang.org/gen" + - "proto/googleapis/cloud/run/v2;runb\006proto" + - "3" - }; - 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 72% 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 b557dfc..5836ff5 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,57 +70,64 @@ private BinaryAuthorization( case 0: done = true; break; - case 8: { - binauthzMethodCase_ = 1; - binauthzMethod_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + binauthzMethodCase_ = 1; + binauthzMethod_ = input.readBool(); + 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) { throw e.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; } @@ -119,30 +143,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 @@ -150,12 +179,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 @@ -169,6 +201,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.
@@ -177,6 +211,7 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ @java.lang.Override @@ -185,14 +220,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.
@@ -201,16 +237,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 { @@ -219,6 +254,7 @@ public java.lang.String getBreakglassJustification() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,11 +266,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_); @@ -249,9 +283,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_); @@ -264,20 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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: @@ -298,8 +331,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: @@ -309,118 +341,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() @@ -428,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +489,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 @@ -470,7 +510,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_; } @@ -484,38 +525,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; @@ -529,13 +571,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(); @@ -565,12 +609,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() { @@ -580,26 +624,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() { @@ -609,12 +658,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. */ @@ -625,12 +677,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() { @@ -644,6 +699,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.
@@ -652,13 +709,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; @@ -667,6 +724,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.
@@ -675,15 +734,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 { @@ -691,6 +749,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.
@@ -699,20 +759,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.
@@ -721,15 +783,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.
@@ -738,23 +803,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); } @@ -764,12 +829,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(); } @@ -778,16 +843,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; @@ -802,6 +867,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 6eabba6..581738a 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() { connections_ = 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,29 +71,29 @@ private CloudSqlInstance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connections_.add(s); + break; } - connections_.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) { throw e.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)) { connections_ = connections_.getUnmodifiableView(); @@ -85,22 +102,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 CONNECTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList connections_; /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -110,13 +132,15 @@ private CloudSqlInstance(
    * 
* * repeated string connections = 1; + * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList - getConnectionsList() { + public com.google.protobuf.ProtocolStringList getConnectionsList() { return connections_; } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -126,12 +150,15 @@ private CloudSqlInstance(
    * 
* * repeated string connections = 1; + * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -141,6 +168,7 @@ public int getConnectionsCount() {
    * 
* * repeated string connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -148,6 +176,8 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -157,15 +187,16 @@ public java.lang.String getConnections(int index) {
    * 
* * repeated string connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString - getConnectionsBytes(int index) { + public com.google.protobuf.ByteString getConnectionsBytes(int index) { return connections_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +208,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 < connections_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connections_.getRaw(i)); } @@ -207,15 +237,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 (!getConnectionsList() - .equals(other.getConnectionsList())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,118 +265,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() @@ -355,16 +393,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(); @@ -374,9 +411,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 @@ -395,7 +432,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)) { connections_ = connections_.getUnmodifiableView(); @@ -410,38 +448,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; @@ -488,16 +527,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList connections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList connections_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connections_ = new com.google.protobuf.LazyStringArrayList(connections_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -507,13 +551,15 @@ private void ensureConnectionsIsMutable() {
      * 
* * repeated string connections = 1; + * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList - getConnectionsList() { + public com.google.protobuf.ProtocolStringList getConnectionsList() { return connections_.getUnmodifiableView(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -523,12 +569,15 @@ private void ensureConnectionsIsMutable() {
      * 
* * repeated string connections = 1; + * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -538,6 +587,7 @@ public int getConnectionsCount() {
      * 
* * repeated string connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -545,6 +595,8 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -554,14 +606,16 @@ public java.lang.String getConnections(int index) {
      * 
* * repeated string connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString - getConnectionsBytes(int index) { + public com.google.protobuf.ByteString getConnectionsBytes(int index) { return connections_.getByteString(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -571,21 +625,23 @@ public java.lang.String getConnections(int index) {
      * 
* * repeated string connections = 1; + * * @param index The index to set the value at. * @param value The connections to set. * @return This builder for chaining. */ - public Builder setConnections( - int index, java.lang.String value) { + public Builder setConnections(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.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
@@ -595,20 +651,22 @@ public Builder setConnections(
      * 
* * repeated string connections = 1; + * * @param value The connections to add. * @return This builder for chaining. */ - public Builder addConnections( - java.lang.String value) { + public Builder addConnections(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.add(value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -618,18 +676,19 @@ public Builder addConnections(
      * 
* * repeated string connections = 1; + * * @param values The connections to add. * @return This builder for chaining. */ - public Builder addAllConnections( - java.lang.Iterable values) { + public Builder addAllConnections(java.lang.Iterable values) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -639,6 +698,7 @@ public Builder addAllConnections(
      * 
* * repeated string connections = 1; + * * @return This builder for chaining. */ public Builder clearConnections() { @@ -648,6 +708,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -657,23 +719,23 @@ public Builder clearConnections() {
      * 
* * repeated string connections = 1; + * * @param value The bytes of the connections to add. * @return This builder for chaining. */ - public Builder addConnectionsBytes( - com.google.protobuf.ByteString value) { + public Builder addConnectionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureConnectionsIsMutable(); connections_.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); } @@ -683,12 +745,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(); } @@ -697,16 +759,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; @@ -721,6 +783,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 cb06079..262b0b0 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 connections = 1; + * * @return A list containing the connections. */ - java.util.List - getConnectionsList(); + java.util.List getConnectionsList(); /** + * + * *
    * 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 connections = 1; + * * @return The count of connections. */ int getConnectionsCount(); /** + * + * *
    * 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 connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ java.lang.String getConnections(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 connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - com.google.protobuf.ByteString - getConnectionsBytes(int index); + com.google.protobuf.ByteString getConnectionsBytes(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 77% 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 790c5fe..db439ec 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,115 +73,131 @@ 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 56: { - int rawValue = input.readEnum(); - reasonsCase_ = 7; - reasons_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); - reasonsCase_ = 8; - 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 56: + { + int rawValue = input.readEnum(); + reasonsCase_ = 7; + reasons_ = rawValue; + break; + } + case 64: + { + int rawValue = input.readEnum(); + reasonsCase_ = 8; + 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) { throw e.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.
      * 
@@ -173,6 +206,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -181,6 +216,8 @@ public enum State */ CONDITION_PENDING(1), /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -189,6 +226,8 @@ public enum State */ CONDITION_RECONCILING(2), /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -197,6 +236,8 @@ public enum State */ CONDITION_FAILED(3), /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -208,6 +249,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -216,6 +259,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -224,6 +269,8 @@ public enum State */ public static final int CONDITION_PENDING_VALUE = 1; /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -232,6 +279,8 @@ public enum State */ public static final int CONDITION_RECONCILING_VALUE = 2; /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -240,6 +289,8 @@ public enum State */ public static final int CONDITION_FAILED_VALUE = 3; /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -248,7 +299,6 @@ public enum State */ public static final int CONDITION_SUCCEEDED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -273,51 +323,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; + 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() { + 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; @@ -335,15 +387,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
      * 
@@ -352,6 +407,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Error severity.
      * 
@@ -360,6 +417,8 @@ public enum Severity */ ERROR(1), /** + * + * *
      * Warning severity.
      * 
@@ -368,6 +427,8 @@ public enum Severity */ WARNING(2), /** + * + * *
      * Info severity.
      * 
@@ -379,6 +440,8 @@ public enum Severity ; /** + * + * *
      * Unspecified severity
      * 
@@ -387,6 +450,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Error severity.
      * 
@@ -395,6 +460,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
      * Warning severity.
      * 
@@ -403,6 +470,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
      * Info severity.
      * 
@@ -411,7 +480,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,50 +504,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; @@ -497,15 +566,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.
      * 
@@ -514,6 +586,8 @@ public enum CommonReason */ COMMON_REASON_UNDEFINED(0), /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -522,6 +596,8 @@ public enum CommonReason */ UNKNOWN(1), /** + * + * *
      * The internal route is missing.
      * 
@@ -530,6 +606,8 @@ public enum CommonReason */ ROUTE_MISSING(2), /** + * + * *
      * Revision creation process failed.
      * 
@@ -538,6 +616,8 @@ public enum CommonReason */ REVISION_FAILED(3), /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -546,6 +626,8 @@ public enum CommonReason */ PROGRESS_DEADLINE_EXCEEDED(4), /** + * + * *
      * There was a build error.
      * 
@@ -554,6 +636,8 @@ public enum CommonReason */ BUILD_STEP_FAILED(5), /** + * + * *
      * The container image path is incorrect.
      * 
@@ -562,6 +646,8 @@ public enum CommonReason */ CONTAINER_MISSING(6), /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -570,6 +656,8 @@ public enum CommonReason */ CONTAINER_PERMISSION_DENIED(7), /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -578,6 +666,8 @@ public enum CommonReason */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -586,6 +676,8 @@ public enum CommonReason */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -594,6 +686,8 @@ public enum CommonReason */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -602,6 +696,8 @@ public enum CommonReason */ ENCRYPTION_KEY_CHECK_FAILED(11), /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -610,6 +706,8 @@ public enum CommonReason */ SECRETS_ACCESS_CHECK_FAILED(12), /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -618,6 +716,8 @@ public enum CommonReason */ WAITING_FOR_OPERATION(13), /** + * + * *
      * System will retry immediately.
      * 
@@ -626,6 +726,8 @@ public enum CommonReason */ IMMEDIATE_RETRY(14), /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -637,6 +739,8 @@ public enum CommonReason ; /** + * + * *
      * Default value.
      * 
@@ -645,6 +749,8 @@ public enum CommonReason */ public static final int COMMON_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -653,6 +759,8 @@ public enum CommonReason */ public static final int UNKNOWN_VALUE = 1; /** + * + * *
      * The internal route is missing.
      * 
@@ -661,6 +769,8 @@ public enum CommonReason */ public static final int ROUTE_MISSING_VALUE = 2; /** + * + * *
      * Revision creation process failed.
      * 
@@ -669,6 +779,8 @@ public enum CommonReason */ public static final int REVISION_FAILED_VALUE = 3; /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -677,6 +789,8 @@ public enum CommonReason */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** + * + * *
      * There was a build error.
      * 
@@ -685,6 +799,8 @@ public enum CommonReason */ public static final int BUILD_STEP_FAILED_VALUE = 5; /** + * + * *
      * The container image path is incorrect.
      * 
@@ -693,6 +809,8 @@ public enum CommonReason */ public static final int CONTAINER_MISSING_VALUE = 6; /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -701,6 +819,8 @@ public enum CommonReason */ public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7; /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -709,6 +829,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -717,6 +839,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9; /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -725,6 +849,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10; /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -733,6 +859,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11; /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -741,6 +869,8 @@ public enum CommonReason */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -749,6 +879,8 @@ public enum CommonReason */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** + * + * *
      * System will retry immediately.
      * 
@@ -757,6 +889,8 @@ public enum CommonReason */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -765,7 +899,6 @@ public enum CommonReason */ public static final int POSTPONED_RETRY_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -790,62 +923,75 @@ 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 2: return ROUTE_MISSING; - case 3: return REVISION_FAILED; - case 4: return PROGRESS_DEADLINE_EXCEEDED; - case 5: return BUILD_STEP_FAILED; - 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; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return COMMON_REASON_UNDEFINED; + case 1: + return UNKNOWN; + case 2: + return ROUTE_MISSING; + case 3: + return REVISION_FAILED; + case 4: + return PROGRESS_DEADLINE_EXCEEDED; + case 5: + return BUILD_STEP_FAILED; + 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; + 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; @@ -863,6 +1009,8 @@ private CommonReason(int value) { } /** + * + * *
    * Reasons applicable to internal resources not exposed to users. These will
    * surface in Service.conditions, and could be useful for further diagnosis.
@@ -870,9 +1018,10 @@ private CommonReason(int value) {
    *
    * Protobuf enum {@code google.cloud.run.v2.Condition.InternalReason}
    */
-  public enum InternalReason
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -881,6 +1030,8 @@ public enum InternalReason */ INTERNAL_REASON_UNDEFINED(0), /** + * + * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -889,6 +1040,8 @@ public enum InternalReason */ CONFLICTING_REVISION_NAME(1), /** + * + * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -897,6 +1050,8 @@ public enum InternalReason */ REVISION_MISSING(2), /** + * + * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -905,6 +1060,8 @@ public enum InternalReason */ CONFIGURATION_MISSING(3), /** + * + * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -913,6 +1070,8 @@ public enum InternalReason */ ASSIGNING_TRAFFIC(4), /** + * + * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -921,6 +1080,8 @@ public enum InternalReason */ UPDATING_INGRESS_TRAFFIC_ALLOWED(5), /** + * + * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -929,6 +1090,8 @@ public enum InternalReason */ REVISION_ORG_POLICY_VIOLATION(6), /** + * + * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -940,6 +1103,8 @@ public enum InternalReason ; /** + * + * *
      * Default value.
      * 
@@ -948,6 +1113,8 @@ public enum InternalReason */ public static final int INTERNAL_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -956,6 +1123,8 @@ public enum InternalReason */ public static final int CONFLICTING_REVISION_NAME_VALUE = 1; /** + * + * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -964,6 +1133,8 @@ public enum InternalReason */ public static final int REVISION_MISSING_VALUE = 2; /** + * + * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -972,6 +1143,8 @@ public enum InternalReason */ public static final int CONFIGURATION_MISSING_VALUE = 3; /** + * + * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -980,6 +1153,8 @@ public enum InternalReason */ public static final int ASSIGNING_TRAFFIC_VALUE = 4; /** + * + * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -988,6 +1163,8 @@ public enum InternalReason */ public static final int UPDATING_INGRESS_TRAFFIC_ALLOWED_VALUE = 5; /** + * + * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -996,6 +1173,8 @@ public enum InternalReason */ public static final int REVISION_ORG_POLICY_VIOLATION_VALUE = 6; /** + * + * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -1004,7 +1183,6 @@ public enum InternalReason */ public static final int ENABLING_GCFV2_URI_SUPPORT_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1029,54 +1207,59 @@ public static InternalReason valueOf(int value) { */ public static InternalReason forNumber(int value) { switch (value) { - case 0: return INTERNAL_REASON_UNDEFINED; - case 1: return CONFLICTING_REVISION_NAME; - case 2: return REVISION_MISSING; - case 3: return CONFIGURATION_MISSING; - case 4: return ASSIGNING_TRAFFIC; - case 5: return UPDATING_INGRESS_TRAFFIC_ALLOWED; - case 6: return REVISION_ORG_POLICY_VIOLATION; - case 7: return ENABLING_GCFV2_URI_SUPPORT; - default: return null; + case 0: + return INTERNAL_REASON_UNDEFINED; + case 1: + return CONFLICTING_REVISION_NAME; + case 2: + return REVISION_MISSING; + case 3: + return CONFIGURATION_MISSING; + case 4: + return ASSIGNING_TRAFFIC; + case 5: + return UPDATING_INGRESS_TRAFFIC_ALLOWED; + case 6: + return REVISION_ORG_POLICY_VIOLATION; + case 7: + return ENABLING_GCFV2_URI_SUPPORT; + 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< - InternalReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InternalReason findValueByNumber(int number) { - return InternalReason.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 InternalReason findValueByNumber(int number) { + return InternalReason.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 InternalReason[] VALUES = values(); - public static InternalReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static InternalReason 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; @@ -1094,15 +1277,18 @@ private InternalReason(int value) { } /** + * + * *
    * Reasons specific to DomainMapping resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.DomainMappingReason} */ - public enum DomainMappingReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -1111,6 +1297,8 @@ public enum DomainMappingReason */ DOMAIN_MAPPING_REASON_UNDEFINED(0), /** + * + * *
      * Internal route is not yet ready.
      * 
@@ -1119,6 +1307,8 @@ public enum DomainMappingReason */ ROUTE_NOT_READY(1), /** + * + * *
      * Insufficient permissions.
      * 
@@ -1127,6 +1317,8 @@ public enum DomainMappingReason */ PERMISSION_DENIED(2), /** + * + * *
      * Certificate already exists.
      * 
@@ -1135,6 +1327,8 @@ public enum DomainMappingReason */ CERTIFICATE_ALREADY_EXISTS(3), /** + * + * *
      * Mapping already exists.
      * 
@@ -1143,6 +1337,8 @@ public enum DomainMappingReason */ MAPPING_ALREADY_EXISTS(4), /** + * + * *
      * Certificate issuance pending.
      * 
@@ -1151,6 +1347,8 @@ public enum DomainMappingReason */ CERTIFICATE_PENDING(5), /** + * + * *
      * Certificate issuance failed.
      * 
@@ -1162,6 +1360,8 @@ public enum DomainMappingReason ; /** + * + * *
      * Default value.
      * 
@@ -1170,6 +1370,8 @@ public enum DomainMappingReason */ public static final int DOMAIN_MAPPING_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal route is not yet ready.
      * 
@@ -1178,6 +1380,8 @@ public enum DomainMappingReason */ public static final int ROUTE_NOT_READY_VALUE = 1; /** + * + * *
      * Insufficient permissions.
      * 
@@ -1186,6 +1390,8 @@ public enum DomainMappingReason */ public static final int PERMISSION_DENIED_VALUE = 2; /** + * + * *
      * Certificate already exists.
      * 
@@ -1194,6 +1400,8 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_ALREADY_EXISTS_VALUE = 3; /** + * + * *
      * Mapping already exists.
      * 
@@ -1202,6 +1410,8 @@ public enum DomainMappingReason */ public static final int MAPPING_ALREADY_EXISTS_VALUE = 4; /** + * + * *
      * Certificate issuance pending.
      * 
@@ -1210,6 +1420,8 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_PENDING_VALUE = 5; /** + * + * *
      * Certificate issuance failed.
      * 
@@ -1218,7 +1430,6 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_FAILED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1243,14 +1454,22 @@ public static DomainMappingReason valueOf(int value) { */ public static DomainMappingReason forNumber(int value) { switch (value) { - case 0: return DOMAIN_MAPPING_REASON_UNDEFINED; - case 1: return ROUTE_NOT_READY; - case 2: return PERMISSION_DENIED; - case 3: return CERTIFICATE_ALREADY_EXISTS; - case 4: return MAPPING_ALREADY_EXISTS; - case 5: return CERTIFICATE_PENDING; - case 6: return CERTIFICATE_FAILED; - default: return null; + case 0: + return DOMAIN_MAPPING_REASON_UNDEFINED; + case 1: + return ROUTE_NOT_READY; + case 2: + return PERMISSION_DENIED; + case 3: + return CERTIFICATE_ALREADY_EXISTS; + case 4: + return MAPPING_ALREADY_EXISTS; + case 5: + return CERTIFICATE_PENDING; + case 6: + return CERTIFICATE_FAILED; + default: + return null; } } @@ -1258,28 +1477,28 @@ public static DomainMappingReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DomainMappingReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DomainMappingReason findValueByNumber(int number) { - return DomainMappingReason.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 DomainMappingReason findValueByNumber(int number) { + return DomainMappingReason.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); } @@ -1288,8 +1507,7 @@ public DomainMappingReason findValueByNumber(int number) { public static DomainMappingReason 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; @@ -1307,15 +1525,18 @@ private DomainMappingReason(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.
      * 
@@ -1324,6 +1545,8 @@ public enum RevisionReason */ REVISION_REASON_UNDEFINED(0), /** + * + * *
      * Revision in Pending state.
      * 
@@ -1332,6 +1555,8 @@ public enum RevisionReason */ PENDING(1), /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -1340,6 +1565,8 @@ public enum RevisionReason */ RESERVE(2), /** + * + * *
      * Revision is Retired.
      * 
@@ -1348,6 +1575,8 @@ public enum RevisionReason */ RETIRED(3), /** + * + * *
      * Revision is being retired.
      * 
@@ -1356,6 +1585,8 @@ public enum RevisionReason */ RETIRING(4), /** + * + * *
      * Revision is being recreated.
      * 
@@ -1364,6 +1595,8 @@ public enum RevisionReason */ RECREATING(5), /** + * + * *
      * There was a health check error.
      * 
@@ -1372,6 +1605,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.
@@ -1381,6 +1616,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
@@ -1391,6 +1628,8 @@ public enum RevisionReason
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1399,6 +1638,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
@@ -1409,6 +1650,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
@@ -1421,6 +1664,8 @@ public enum RevisionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -1429,6 +1674,8 @@ public enum RevisionReason */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Revision in Pending state.
      * 
@@ -1437,6 +1684,8 @@ public enum RevisionReason */ public static final int PENDING_VALUE = 1; /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -1445,6 +1694,8 @@ public enum RevisionReason */ public static final int RESERVE_VALUE = 2; /** + * + * *
      * Revision is Retired.
      * 
@@ -1453,6 +1704,8 @@ public enum RevisionReason */ public static final int RETIRED_VALUE = 3; /** + * + * *
      * Revision is being retired.
      * 
@@ -1461,6 +1714,8 @@ public enum RevisionReason */ public static final int RETIRING_VALUE = 4; /** + * + * *
      * Revision is being recreated.
      * 
@@ -1469,6 +1724,8 @@ public enum RevisionReason */ public static final int RECREATING_VALUE = 5; /** + * + * *
      * There was a health check error.
      * 
@@ -1477,6 +1734,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.
@@ -1486,6 +1745,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
@@ -1496,6 +1757,8 @@ public enum RevisionReason
      */
     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1504,6 +1767,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
@@ -1514,6 +1779,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
@@ -1523,7 +1790,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(
@@ -1548,58 +1814,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(5);
     }
 
     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;
@@ -1617,15 +1892,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.
      * 
@@ -1634,6 +1912,8 @@ public enum ExecutionReason */ EXECUTION_REASON_UNDEFINED(0), /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1642,6 +1922,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.
@@ -1654,6 +1936,8 @@ public enum ExecutionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -1662,6 +1946,8 @@ public enum ExecutionReason */ public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1670,6 +1956,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.
@@ -1679,7 +1967,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(
@@ -1704,39 +1991,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(6);
     }
 
@@ -1745,8 +2035,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;
@@ -1765,8 +2054,10 @@ 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),
     INTERNAL_REASON(7),
@@ -1775,6 +2066,7 @@ public enum ReasonsCase
     EXECUTION_REASON(11),
     REASONS_NOT_SET(0);
     private final int value;
+
     private ReasonsCase(int value) {
       this.value = value;
     }
@@ -1790,29 +2082,37 @@ public static ReasonsCase valueOf(int value) {
 
     public static ReasonsCase forNumber(int value) {
       switch (value) {
-        case 6: return REASON;
-        case 7: return INTERNAL_REASON;
-        case 8: return DOMAIN_MAPPING_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 7:
+          return INTERNAL_REASON;
+        case 8:
+          return DOMAIN_MAPPING_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:
@@ -1822,6 +2122,7 @@ public int getNumber() {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -1830,14 +2131,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:
@@ -1847,16 +2149,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 { @@ -1867,38 +2168,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 @@ -1907,29 +2220,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 { @@ -1940,11 +2253,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 @@ -1952,18 +2268,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.
    * 
@@ -1978,48 +2301,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() { @@ -2029,18 +2367,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; @@ -2048,22 +2389,28 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int INTERNAL_REASON_FIELD_NUMBER = 7; /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ public int getInternalReasonValue() { @@ -2073,41 +2420,52 @@ public int getInternalReasonValue() { return 0; } /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.InternalReason result = + com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } public static final int DOMAIN_MAPPING_REASON_FIELD_NUMBER = 8; /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ public int getDomainMappingReasonValue() { @@ -2117,41 +2475,53 @@ public int getDomainMappingReasonValue() { return 0; } /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = + com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } 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() { @@ -2161,41 +2531,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() { @@ -2205,24 +2586,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; @@ -2234,8 +2621,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_); } @@ -2279,39 +2665,36 @@ 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_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(7, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(8, ((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; @@ -2321,45 +2704,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 7: - if (getInternalReasonValue() - != other.getInternalReasonValue()) return false; + if (getInternalReasonValue() != other.getInternalReasonValue()) return false; break; case 8: - if (getDomainMappingReasonValue() - != other.getDomainMappingReasonValue()) return false; + if (getDomainMappingReasonValue() != other.getDomainMappingReasonValue()) 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: @@ -2416,118 +2791,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() @@ -2535,16 +2918,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(); @@ -2568,9 +2950,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 @@ -2623,38 +3005,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; @@ -2681,29 +3064,35 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: { - setReasonValue(other.getReasonValue()); - break; - } - case INTERNAL_REASON: { - setInternalReasonValue(other.getInternalReasonValue()); - break; - } - case DOMAIN_MAPPING_REASON: { - setDomainMappingReasonValue(other.getDomainMappingReasonValue()); - 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 INTERNAL_REASON: + { + setInternalReasonValue(other.getInternalReasonValue()); + break; + } + case DOMAIN_MAPPING_REASON: + { + setDomainMappingReasonValue(other.getDomainMappingReasonValue()); + 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(); @@ -2733,12 +3122,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() { @@ -2748,9 +3137,10 @@ public Builder clearReasons() { return this; } - private java.lang.Object type_ = ""; /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2760,13 +3150,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; @@ -2775,6 +3165,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2784,15 +3176,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 { @@ -2800,6 +3191,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2809,20 +3202,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:
@@ -2832,15 +3227,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:
@@ -2850,16 +3248,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; @@ -2867,51 +3265,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. */ @@ -2919,21 +3331,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; @@ -2941,18 +3356,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; @@ -2961,20 +3378,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 { @@ -2982,54 +3400,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; @@ -3037,34 +3462,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.
      * 
@@ -3085,14 +3523,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(); @@ -3103,6 +3542,8 @@ public Builder setLastTransitionTime( return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3113,7 +3554,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; } @@ -3125,6 +3568,8 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3143,6 +3588,8 @@ public Builder clearLastTransitionTime() { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3150,11 +3597,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.
      * 
@@ -3165,11 +3614,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.
      * 
@@ -3177,14 +3629,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_; @@ -3192,51 +3647,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. */ @@ -3244,32 +3713,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 @@ -3277,11 +3752,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 @@ -3292,11 +3770,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. */ @@ -3307,29 +3788,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. */ @@ -3343,11 +3832,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() { @@ -3360,11 +3852,14 @@ public Builder clearReason() { } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ @java.lang.Override @@ -3372,11 +3867,14 @@ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ @java.lang.Override @@ -3387,11 +3885,14 @@ public int getInternalReasonValue() { return 0; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @param value The enum numeric value on the wire for internalReason to set. * @return This builder for chaining. */ @@ -3402,29 +3903,37 @@ public Builder setInternalReasonValue(int value) { return this; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.InternalReason result = + com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @param value The internalReason to set. * @return This builder for chaining. */ @@ -3438,11 +3947,14 @@ public Builder setInternalReason(com.google.cloud.run.v2.Condition.InternalReaso return this; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return This builder for chaining. */ public Builder clearInternalReason() { @@ -3455,11 +3967,14 @@ public Builder clearInternalReason() { } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ @java.lang.Override @@ -3467,11 +3982,14 @@ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ @java.lang.Override @@ -3482,11 +4000,14 @@ public int getDomainMappingReasonValue() { return 0; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @param value The enum numeric value on the wire for domainMappingReason to set. * @return This builder for chaining. */ @@ -3497,33 +4018,43 @@ public Builder setDomainMappingReasonValue(int value) { return this; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = + com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @param value The domainMappingReason to set. * @return This builder for chaining. */ - public Builder setDomainMappingReason(com.google.cloud.run.v2.Condition.DomainMappingReason value) { + public Builder setDomainMappingReason( + com.google.cloud.run.v2.Condition.DomainMappingReason value) { if (value == null) { throw new NullPointerException(); } @@ -3533,11 +4064,14 @@ public Builder setDomainMappingReason(com.google.cloud.run.v2.Condition.DomainMa return this; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return This builder for chaining. */ public Builder clearDomainMappingReason() { @@ -3550,11 +4084,14 @@ public Builder clearDomainMappingReason() { } /** + * + * *
      * 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 @@ -3562,11 +4099,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 @@ -3577,11 +4117,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. */ @@ -3592,29 +4135,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. */ @@ -3628,11 +4179,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() { @@ -3645,11 +4199,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 @@ -3657,11 +4214,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 @@ -3672,11 +4232,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. */ @@ -3687,29 +4250,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. */ @@ -3723,11 +4294,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() { @@ -3738,9 +4312,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); } @@ -3750,12 +4324,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(); } @@ -3764,16 +4338,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; @@ -3788,6 +4362,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 86% 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 7c2e922..43ca148 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,160 +142,211 @@ 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 internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ boolean hasInternalReason(); /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ int getInternalReasonValue(); /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ com.google.cloud.run.v2.Condition.InternalReason getInternalReason(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ boolean hasDomainMappingReason(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ int getDomainMappingReasonValue(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason(); /** + * + * *
    * 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..498ac89 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.InternalReaso" + + "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" + + "gle.cloud.run.v2.Condition.DomainMapping" + + "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" + + "le.cloud.run.v2.Condition.RevisionReason" + + "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" + + "oud.run.v2.Condition.ExecutionReasonH\000\"\177" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" + + "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" + + "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" + + "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + + "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" + + "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" + + "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" + + "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" + + "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" + + "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" + + "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" + + "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" + + "CK_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\025W" + + "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" + + "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" + + "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" + + "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" + + "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" + + "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" + + "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" + + "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" + + "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" + + "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" + + "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" + + "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" + + "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" + + "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" + + "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" + + "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" + + "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" + + "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" + + "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" + + "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" + + "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" + + "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" + + "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" + + "easonsBc\n\027com.google.cloud.run.v2B\016Condi" + + "tionProtoP\001Z6google.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.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", + "InternalReason", + "DomainMappingReason", + "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 657ebf2..fe4d3fd 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,90 +81,101 @@ 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) {
       throw e.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();
@@ -168,27 +196,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 @@ -197,29 +231,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 { @@ -230,12 +264,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 Docker
    * More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ @java.lang.Override @@ -244,30 +281,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 Docker
    * 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 { @@ -278,6 +315,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.
@@ -291,13 +330,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.
@@ -311,12 +352,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.
@@ -330,6 +374,7 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -337,6 +382,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.
@@ -350,17 +397,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.
@@ -374,13 +423,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.
@@ -394,12 +445,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.
@@ -413,6 +467,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -420,6 +475,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.
@@ -433,17 +490,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.
    * 
@@ -455,6 +514,8 @@ public java.util.List getEnvList() { return env_; } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -462,11 +523,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.
    * 
@@ -478,6 +540,8 @@ public int getEnvCount() { return env_.size(); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -489,6 +553,8 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -496,14 +562,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:
@@ -511,6 +578,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 @@ -518,6 +586,8 @@ public boolean hasResources() { return resources_ != null; } /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -525,13 +595,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:
@@ -548,6 +623,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
@@ -563,6 +640,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
@@ -574,11 +653,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
@@ -594,6 +675,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
@@ -609,6 +692,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
@@ -620,14 +705,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.
    * 
@@ -639,6 +725,8 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -646,11 +734,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.
    * 
@@ -662,6 +752,8 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -673,6 +765,8 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -680,12 +774,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; @@ -697,8 +791,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_); } @@ -755,20 +848,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; @@ -778,32 +867,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; } @@ -848,97 +929,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
@@ -949,21 +1036,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()
@@ -971,19 +1060,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();
@@ -1023,9 +1112,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
@@ -1098,38 +1187,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;
@@ -1184,9 +1274,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_);
           }
@@ -1213,9 +1304,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_);
           }
@@ -1239,9 +1331,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_);
           }
@@ -1275,22 +1368,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; @@ -1299,20 +1395,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 { @@ -1320,54 +1417,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; @@ -1375,19 +1479,21 @@ public Builder setNameBytes( private java.lang.Object image_ = ""; /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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; @@ -1396,21 +1502,22 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 { @@ -1418,70 +1525,81 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 Docker
      * 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 Docker
      * 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.
@@ -1495,13 +1613,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.
@@ -1515,12 +1635,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.
@@ -1534,6 +1657,7 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1541,6 +1665,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.
@@ -1554,14 +1680,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.
@@ -1575,21 +1703,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.
@@ -1603,20 +1733,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.
@@ -1630,18 +1762,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.
@@ -1655,6 +1788,7 @@ public Builder addAllCommand(
      * 
* * repeated string command = 3; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1664,6 +1798,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.
@@ -1677,29 +1813,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.
@@ -1713,13 +1853,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.
@@ -1733,12 +1875,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.
@@ -1752,6 +1897,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1759,6 +1905,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.
@@ -1772,14 +1920,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.
@@ -1793,21 +1943,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.
@@ -1821,20 +1973,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.
@@ -1848,18 +2002,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.
@@ -1873,6 +2028,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 4; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1882,6 +2038,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1895,34 +2053,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.
      * 
@@ -1937,6 +2100,8 @@ public java.util.List getEnvList() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1951,6 +2116,8 @@ public int getEnvCount() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1965,14 +2132,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(); @@ -1986,14 +2154,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()); @@ -2004,6 +2173,8 @@ public Builder setEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2024,14 +2195,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(); @@ -2045,14 +2217,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()); @@ -2063,14 +2236,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()); @@ -2081,18 +2255,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); @@ -2100,6 +2274,8 @@ public Builder addAllEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2117,6 +2293,8 @@ public Builder clearEnv() { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2134,39 +2312,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 { @@ -2174,6 +2356,8 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2181,42 +2365,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_; @@ -2224,8 +2412,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:
@@ -2233,12 +2426,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:
@@ -2246,16 +2442,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:
@@ -2278,6 +2479,8 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2298,6 +2501,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2310,7 +2515,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;
         }
@@ -2322,6 +2529,8 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2342,6 +2551,8 @@ public Builder clearResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2351,11 +2562,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:
@@ -2368,11 +2581,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:
@@ -2382,32 +2598,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
@@ -2426,6 +2651,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
@@ -2444,6 +2671,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
@@ -2462,6 +2691,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
@@ -2472,8 +2703,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();
@@ -2487,6 +2717,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
@@ -2509,6 +2741,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
@@ -2533,6 +2767,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
@@ -2543,8 +2779,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();
@@ -2558,6 +2793,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
@@ -2568,8 +2805,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());
@@ -2580,6 +2816,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
@@ -2602,6 +2840,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
@@ -2616,8 +2856,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);
@@ -2625,6 +2864,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
@@ -2646,6 +2887,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
@@ -2667,6 +2910,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
@@ -2677,11 +2922,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
@@ -2692,14 +2938,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
@@ -2710,8 +2958,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 {
@@ -2719,6 +2967,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
@@ -2730,10 +2980,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
@@ -2744,12 +2996,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
@@ -2760,38 +3013,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.
      * 
@@ -2806,6 +3067,8 @@ public java.util.List getVolumeMountsList() } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2820,6 +3083,8 @@ public int getVolumeMountsCount() { } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2834,14 +3099,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(); @@ -2855,6 +3121,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2873,6 +3141,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2893,14 +3163,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(); @@ -2914,14 +3185,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()); @@ -2932,6 +3204,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2950,6 +3224,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2960,8 +3236,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); @@ -2969,6 +3244,8 @@ public Builder addAllVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2986,6 +3263,8 @@ public Builder clearVolumeMounts() { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3003,39 +3282,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 { @@ -3043,6 +3327,8 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3050,49 +3336,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); } @@ -3102,12 +3394,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(); } @@ -3116,16 +3408,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; @@ -3140,6 +3432,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 73b7983..d1b3382 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 Docker
    * 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 Docker
    * 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 a894a5c..ec8f386 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,58 +70,64 @@ 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) { throw e.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 @@ -113,30 +136,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 { @@ -147,12 +170,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 @@ -161,6 +187,7 @@ public int getContainerPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +199,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_); } @@ -193,8 +219,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; @@ -204,17 +229,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; } @@ -235,118 +258,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() @@ -354,16 +385,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(); @@ -375,9 +405,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 @@ -396,7 +426,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(); @@ -407,38 +438,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; @@ -485,19 +517,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; @@ -506,21 +540,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 { @@ -528,70 +563,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 @@ -599,39 +644,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); } @@ -641,12 +692,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(); } @@ -655,16 +706,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; @@ -679,6 +730,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 69% 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 beed4d8..88a038b 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,77 +71,88 @@ 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) { throw e.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 @@ -133,30 +161,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 { @@ -167,11 +197,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 @@ -179,11 +213,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 @@ -191,11 +229,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() { @@ -205,12 +246,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 @@ -219,30 +263,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 { @@ -253,12 +297,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 @@ -267,6 +314,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +326,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_); } @@ -305,15 +352,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; @@ -323,24 +368,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; } @@ -361,125 +403,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() @@ -487,16 +537,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(); @@ -516,9 +565,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 @@ -537,7 +586,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_; @@ -554,38 +604,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; @@ -639,19 +690,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; @@ -660,21 +715,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 { @@ -682,57 +740,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; @@ -740,24 +811,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() { @@ -768,11 +850,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) { @@ -788,14 +873,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(); @@ -806,17 +893,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; } @@ -828,11 +918,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) { @@ -846,48 +939,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_; @@ -895,19 +999,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; @@ -916,21 +1022,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 { @@ -938,70 +1045,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 @@ -1009,39 +1126,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); } @@ -1051,12 +1174,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(); } @@ -1065,16 +1188,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; @@ -1089,6 +1212,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 69% 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 4d0b67c..c5b40af 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,65 +73,74 @@ 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) {
       throw e.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 @@ -123,31 +149,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 { @@ -158,12 +186,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 @@ -174,12 +205,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 @@ -188,30 +222,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 { @@ -220,6 +254,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,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_); } @@ -255,8 +289,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_); @@ -269,19 +302,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; } @@ -296,8 +327,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(); @@ -305,97 +335,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
@@ -404,21 +441,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()
@@ -426,16 +465,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +487,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
@@ -470,7 +508,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_;
@@ -482,38 +521,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;
@@ -564,20 +604,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; @@ -586,22 +630,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 { @@ -609,73 +656,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 @@ -683,32 +746,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; @@ -716,19 +785,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; @@ -737,21 +808,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 { @@ -759,64 +831,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); } @@ -826,12 +905,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(); } @@ -840,16 +919,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; @@ -864,6 +943,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 6d82284..779f691 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,64 +71,73 @@ 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) { throw e.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 @@ -120,30 +146,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 { @@ -154,12 +182,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 @@ -170,12 +201,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 @@ -184,30 +218,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 { @@ -216,6 +250,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +285,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_); @@ -265,19 +298,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; } @@ -292,8 +323,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(); @@ -301,118 +331,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() @@ -420,16 +459,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(); @@ -443,9 +481,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 @@ -464,7 +502,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_; @@ -476,38 +515,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; @@ -558,19 +598,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; @@ -579,21 +623,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 { @@ -601,70 +648,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 @@ -672,32 +735,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; @@ -705,19 +774,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; @@ -726,21 +797,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 { @@ -748,64 +820,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); } @@ -815,12 +894,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(); } @@ -829,16 +908,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; @@ -853,6 +932,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 735e5f4..6199ab6 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,73 +70,81 @@ 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) { throw e.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; } @@ -135,32 +160,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 @@ -169,30 +200,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 { @@ -202,6 +233,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
@@ -214,12 +247,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
@@ -232,6 +268,7 @@ public boolean hasValue() {
    * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { @@ -242,8 +279,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; @@ -252,6 +288,8 @@ public java.lang.String getValue() { } } /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -264,18 +302,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; } @@ -287,11 +324,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 @@ -299,21 +339,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.
    * 
@@ -323,12 +368,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; @@ -340,8 +386,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_); } @@ -367,8 +412,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; @@ -378,24 +424,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: @@ -430,116 +473,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); } @@ -549,16 +599,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(); @@ -570,9 +619,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 @@ -612,38 +661,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; @@ -657,19 +707,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(); @@ -699,12 +752,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() { @@ -714,22 +767,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; @@ -738,21 +792,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 { @@ -760,63 +815,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
@@ -829,6 +893,7 @@ public Builder setNameBytes(
      * 
* * string value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -836,6 +901,8 @@ public boolean hasValue() { return valuesCase_ == 2; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -848,6 +915,7 @@ public boolean hasValue() {
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -857,8 +925,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; @@ -869,6 +936,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -881,19 +950,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; } @@ -903,6 +971,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -915,20 +985,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
@@ -941,6 +1013,7 @@ public Builder setValue(
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -952,6 +1025,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -964,15 +1039,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(); @@ -980,13 +1055,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 @@ -994,11 +1075,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 @@ -1016,6 +1100,8 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1036,14 +1122,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(); @@ -1054,6 +1141,8 @@ public Builder setValueSource( return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1062,10 +1151,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; } @@ -1080,6 +1172,8 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1103,6 +1197,8 @@ public Builder clearValueSource() { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1113,6 +1209,8 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1131,6 +1229,8 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1138,26 +1238,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); } @@ -1167,12 +1271,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(); } @@ -1181,16 +1285,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; @@ -1205,6 +1309,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 68% 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 5ed79aa..b92d8be 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,59 +68,67 @@ 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) { throw e.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 @@ -112,18 +136,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.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (secretKeyRef_ != null) { output.writeMessage(1, getSecretKeyRef()); } @@ -162,8 +193,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; @@ -173,7 +203,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); @@ -182,8 +212,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; @@ -205,118 +234,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() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,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 @@ -382,38 +418,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; @@ -456,34 +493,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.
      * 
@@ -504,6 +554,8 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -522,6 +574,8 @@ public Builder setSecretKeyRef( return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -532,7 +586,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; } @@ -544,6 +600,8 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -562,6 +620,8 @@ public Builder clearSecretKeyRef() { return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -569,11 +629,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.
      * 
@@ -584,11 +646,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.
      * 
@@ -596,21 +661,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); } @@ -620,12 +688,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(); } @@ -634,16 +702,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; @@ -658,6 +726,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 07d5c71..b9e959e 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 Google-default environment.
    * 
@@ -29,6 +49,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_DEFAULT(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 Google-default environment.
    * 
@@ -56,6 +82,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_DEFAULT_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_DEFAULT; - case 2: return EXECUTION_ENVIRONMENT_GEN2; - default: return null; + case 0: + return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: + return EXECUTION_ENVIRONMENT_DEFAULT; + 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 65% 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 ef20db6..6608033 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,54 +70,62 @@ 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) { throw e.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 @@ -109,31 +134,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 { @@ -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.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; } @@ -205,118 +232,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() @@ -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.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 @@ -364,7 +399,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; @@ -374,38 +410,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; @@ -449,20 +486,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; @@ -471,22 +512,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 { @@ -494,67 +538,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); } @@ -564,12 +621,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(); } @@ -578,16 +635,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; @@ -602,6 +659,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 167c2f1..354e321 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -203,118 +230,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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -447,19 +484,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; @@ -468,21 +509,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 { @@ -490,64 +534,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); } @@ -557,12 +614,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(); } @@ -571,16 +628,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; @@ -595,6 +652,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..26c60b3 --- /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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" + + "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" + + "g.org/genproto/googleapis/cloud/run/v2;r" + + "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" + + "\022Sprojects/{project}/locations/{location" + + "}/keyRings/{key_ring}/cryptoKeys/{crypto" + + "_key}\352AJ\n#secretmanager.googleapis.com/S" + + "ecret\022#projects/{project}/secrets/{secre" + + "t}\352Ad\n*secretmanager.googleapis.com/Secr" + + "etVersion\0226projects/{project}/secrets/{s" + + "ecret}/versions/{version}\352Ad\n\"vpcaccess." + + "googleapis.com/Connector\022>projects/{proj" + + "ect}/locations/{location}/connectors/{co" + + "nnector}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[] { + "Connections", + }); + 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 c29bba3..d519f06 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,63 +71,69 @@ 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) { throw e.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.
@@ -118,7 +141,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 @@ -127,14 +153,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.
@@ -142,17 +169,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 { @@ -163,11 +191,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 @@ -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 ListRevisions.
    * 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 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 { @@ -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.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; } @@ -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.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() @@ -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.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 @@ -500,7 +539,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_; @@ -513,38 +553,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; @@ -598,6 +639,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.
@@ -605,14 +648,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; @@ -621,6 +666,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.
@@ -628,16 +675,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 { @@ -645,6 +693,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.
@@ -652,21 +702,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.
@@ -674,16 +728,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.
@@ -691,29 +750,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 @@ -721,30 +785,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; @@ -752,19 +822,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; @@ -773,21 +845,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 { @@ -795,69 +868,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 @@ -865,37 +948,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); } @@ -905,12 +994,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(); } @@ -919,16 +1008,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; @@ -943,6 +1032,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 531901c..7780bb6 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,35 +72,36 @@ 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) { throw e.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_); @@ -92,22 +110,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.
    * 
@@ -119,6 +142,8 @@ public java.util.List getRevisionsList() { return revisions_; } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getRevisionsCount() { return revisions_.size(); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -153,6 +182,8 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -160,20 +191,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 @@ -182,30 +215,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 { @@ -214,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +259,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)); } @@ -243,8 +276,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_); @@ -257,17 +289,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; } @@ -290,118 +321,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() @@ -409,17 +449,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(); @@ -435,9 +475,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 @@ -456,7 +496,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)) { @@ -476,38 +517,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; @@ -534,9 +576,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_); } @@ -574,21 +617,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.
      * 
@@ -603,6 +653,8 @@ public java.util.List getRevisionsList() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -617,6 +669,8 @@ public int getRevisionsCount() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -631,14 +685,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(); @@ -652,6 +707,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -670,6 +727,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -690,14 +749,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(); @@ -711,14 +771,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()); @@ -729,6 +790,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -747,6 +810,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -757,8 +822,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); @@ -766,6 +830,8 @@ public Builder addAllRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -783,6 +849,8 @@ public Builder clearRevisions() { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -800,39 +868,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 { @@ -840,6 +913,8 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -847,42 +922,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_; @@ -890,19 +970,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; @@ -911,21 +993,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 { @@ -933,64 +1016,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); } @@ -1000,12 +1090,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(); } @@ -1014,16 +1104,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; @@ -1038,6 +1128,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 2204fdc..0a02b2c 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,70 +71,79 @@ 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) { throw e.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 @@ -126,31 +152,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 { @@ -161,11 +189,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 @@ -176,12 +207,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 @@ -190,30 +224,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 { @@ -224,11 +258,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 @@ -237,6 +274,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,8 +286,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_); } @@ -275,15 +312,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; @@ -293,21 +328,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; } @@ -326,125 +358,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() @@ -452,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +516,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 @@ -498,7 +537,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_; @@ -511,38 +551,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; @@ -596,20 +637,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; @@ -618,22 +663,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 { @@ -641,72 +689,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 @@ -714,30 +778,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; @@ -745,19 +815,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; @@ -766,21 +838,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 { @@ -788,69 +861,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 @@ -858,37 +941,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); } @@ -898,12 +987,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(); } @@ -912,16 +1001,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; @@ -936,6 +1025,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 69f2b36..cb0f706 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,35 +72,36 @@ 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) { throw e.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_); @@ -92,22 +110,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.
    * 
@@ -119,6 +142,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * The resulting list of Services.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -153,6 +182,8 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -160,20 +191,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 @@ -182,30 +215,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 { @@ -214,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +259,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)); } @@ -243,8 +276,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_); @@ -257,17 +289,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; } @@ -290,118 +321,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() @@ -409,17 +449,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(); @@ -435,9 +475,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 @@ -456,7 +496,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)) { @@ -476,38 +517,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; @@ -534,9 +576,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_); } @@ -574,21 +617,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.
      * 
@@ -603,6 +653,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -617,6 +669,8 @@ public int getServicesCount() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -631,14 +685,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(); @@ -652,14 +707,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()); @@ -670,6 +726,8 @@ public Builder setServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -690,14 +748,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(); @@ -711,14 +770,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()); @@ -729,14 +789,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()); @@ -747,6 +808,8 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -757,8 +820,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); @@ -766,6 +828,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -783,6 +847,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -800,39 +866,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 { @@ -840,6 +911,8 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -847,42 +920,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_; @@ -890,19 +968,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; @@ -911,21 +991,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 { @@ -933,64 +1014,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); } @@ -1000,12 +1088,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(); } @@ -1014,16 +1102,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; @@ -1038,6 +1126,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 65% 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 19ee6ff..d2eea4b 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,87 +69,87 @@ 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) { throw e.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_; } @@ -142,6 +158,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
@@ -152,22 +170,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
-
   @java.lang.Override
-  public boolean containsLimits(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLimits(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -179,11 +197,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
@@ -195,16 +214,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -216,12 +235,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -231,11 +249,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 @@ -244,6 +265,7 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,14 +277,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_); } @@ -275,19 +292,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; @@ -297,17 +313,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; } @@ -324,147 +339,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() @@ -472,16 +493,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 +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_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 @@ -513,7 +533,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(); @@ -526,38 +547,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; @@ -566,8 +588,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()); } @@ -599,24 +620,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(); @@ -628,6 +649,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
@@ -638,22 +661,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
-
     @java.lang.Override
-    public boolean containsLimits(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLimits(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -665,11 +688,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
@@ -681,16 +705,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -702,12 +727,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+    public java.lang.String getLimitsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -715,11 +739,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
@@ -730,23 +755,21 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-
-    public Builder removeLimits(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLimits().getMutableMap()
-          .remove(key);
+    public Builder removeLimits(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -757,16 +780,19 @@ public Builder removeLimits(
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLimits().getMutableMap()
-          .put(key, value);
+    public Builder putLimits(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -777,21 +803,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 @@ -799,37 +825,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); } @@ -839,12 +871,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(); } @@ -853,16 +885,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; @@ -877,6 +909,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 71% 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 0768f83..1400871 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
@@ -62,11 +81,10 @@ boolean containsLimits(
    *
    * map<string, string> limits = 1;
    */
-
-  java.lang.String getLimitsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLimitsOrDefault(java.lang.String key, 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
@@ -77,16 +95,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 9f2fb8c..f3e7bc2 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,243 +84,271 @@ 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();
+              launchStage_ = rawValue;
+              break;
             }
-            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();
-
-            launchStage_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+          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 112:
+            {
+              containerConcurrency_ = input.readInt32();
+              break;
             }
+          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 112: {
-
-            containerConcurrency_ = input.readInt32();
-            break;
-          }
-          case 122: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          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 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;
+          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;
             }
-            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 152:
+            {
+              confidential_ = input.readBool();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 152: {
-
-            confidential_ = input.readBool();
-            break;
-          }
-          case 160: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 170: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 160:
+            {
+              int rawValue = input.readEnum();
 
-            encryptionKey_ = s;
-            break;
-          }
-          case 240: {
-
-            reconciling_ = input.readBool();
-            break;
-          }
-          case 250: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              conditions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+              executionEnvironment_ = rawValue;
+              break;
             }
-            conditions_.add(
-                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-            break;
-          }
-          case 256: {
+          case 170:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            observedGeneration_ = input.readInt64();
-            break;
-          }
-          case 266: {
-            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;
+            }
+          case 256:
+            {
+              observedGeneration_ = input.readInt64();
+              break;
+            }
+          case 266:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            logUri_ = s;
-            break;
-          }
-          case 794: {
-            java.lang.String s = input.readStringRequireUtf8();
+              logUri_ = s;
+              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) {
       throw e.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_);
@@ -318,29 +363,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);
   }
@@ -348,11 +394,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 @@ -361,29 +410,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 { @@ -394,12 +443,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 @@ -408,30 +460,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 { @@ -442,12 +494,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 @@ -456,24 +511,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_; } @@ -482,6 +536,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
@@ -496,22 +552,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -527,11 +583,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
@@ -547,16 +604,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -572,12 +629,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -585,24 +641,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_;
   }
@@ -611,28 +667,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -640,11 +698,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.
    * 
@@ -652,16 +711,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -669,12 +729,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -684,11 +743,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 @@ -696,11 +759,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 @@ -708,11 +775,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() { @@ -722,11 +792,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 @@ -734,11 +808,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 @@ -746,11 +824,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() { @@ -760,12 +841,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 @@ -773,12 +858,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 @@ -786,12 +875,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() { @@ -801,13 +893,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 @@ -815,13 +911,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 @@ -829,13 +929,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() { @@ -845,6 +948,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
@@ -853,12 +958,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
@@ -867,9 +976,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; @@ -878,11 +989,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 @@ -891,29 +1007,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 { @@ -924,11 +1042,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 @@ -936,18 +1057,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.
    * 
@@ -962,12 +1090,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 @@ -975,12 +1106,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 @@ -988,6 +1122,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.
@@ -1003,11 +1139,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 14;
   private int containerConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 14; + * * @return The containerConcurrency. */ @java.lang.Override @@ -1018,11 +1157,14 @@ public int getContainerConcurrency() { 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 @@ -1030,11 +1172,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 @@ -1042,6 +1187,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.
    * 
@@ -1056,6 +1203,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
@@ -1063,6 +1212,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ @java.lang.Override @@ -1071,14 +1221,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
@@ -1086,16 +1237,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 { @@ -1106,6 +1256,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.
@@ -1118,6 +1270,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1126,11 +1280,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.
@@ -1143,6 +1299,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1155,6 +1313,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.
@@ -1163,14 +1323,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.
    * 
@@ -1182,6 +1343,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1189,11 +1352,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.
    * 
@@ -1205,6 +1370,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1216,6 +1383,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1223,19 +1392,21 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 19; private boolean confidential_; /** + * + * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; + * * @return The confidential. */ @java.lang.Override @@ -1246,33 +1417,44 @@ public boolean getConfidential() { 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
@@ -1280,6 +1462,7 @@ public boolean getConfidential() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -1288,14 +1471,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
@@ -1303,16 +1487,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 { @@ -1323,6 +1506,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
@@ -1330,6 +1515,7 @@ public java.lang.String getEncryptionKey() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1340,71 +1526,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
@@ -1412,6 +1619,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 @@ -1422,11 +1630,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 @@ -1435,29 +1646,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 { @@ -1468,12 +1679,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 @@ -1482,30 +1696,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 { @@ -1514,6 +1728,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1525,8 +1740,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_); } @@ -1536,18 +1750,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()); } @@ -1590,7 +1796,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (confidential_ != false) { output.writeBool(19, confidential_); } - 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_)) { @@ -1627,101 +1835,86 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, confidential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, confidential_); } - 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_); @@ -1737,84 +1930,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 (getContainerConcurrency() - != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() != other.getContainerConcurrency()) 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 (getConfidential() - != other.getConfidential()) 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 (getConfidential() != other.getConfidential()) 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; } @@ -1831,8 +2000,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(); @@ -1886,22 +2054,19 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; 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; @@ -1911,97 +2076,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
@@ -2010,47 +2181,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()
@@ -2058,19 +2229,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();
@@ -2168,9 +2339,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
@@ -2279,38 +2450,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;
@@ -2330,10 +2502,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());
       }
@@ -2387,9 +2557,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_);
           }
@@ -2413,9 +2584,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_);
           }
@@ -2452,9 +2624,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_);
           }
@@ -2499,22 +2672,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; @@ -2523,20 +2699,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 { @@ -2544,54 +2721,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; @@ -2599,19 +2783,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; @@ -2620,21 +2806,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 { @@ -2642,70 +2829,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 @@ -2713,53 +2910,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(); @@ -2771,6 +2973,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
@@ -2785,22 +2989,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -2816,11 +3020,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
@@ -2836,16 +3041,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2861,12 +3067,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2874,11 +3079,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
@@ -2893,23 +3099,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2924,16 +3128,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2948,30 +3155,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();
@@ -2983,28 +3189,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -3012,11 +3220,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.
      * 
@@ -3024,16 +3233,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -3041,12 +3251,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3054,99 +3263,117 @@ 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 java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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) { @@ -3162,14 +3389,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(); @@ -3180,17 +3410,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; } @@ -3202,11 +3436,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) { @@ -3220,48 +3458,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_; @@ -3269,39 +3523,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) { @@ -3317,14 +3590,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(); @@ -3335,17 +3611,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; } @@ -3357,11 +3637,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) { @@ -3375,48 +3659,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_; @@ -3424,42 +3724,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) { @@ -3475,15 +3794,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(); @@ -3494,18 +3816,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; } @@ -3517,12 +3843,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) { @@ -3536,51 +3866,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_; @@ -3588,45 +3934,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) { @@ -3642,16 +4007,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(); @@ -3662,19 +4030,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; } @@ -3686,13 +4058,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) { @@ -3706,54 +4082,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_; @@ -3761,6 +4153,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
@@ -3769,12 +4163,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
@@ -3783,16 +4181,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
@@ -3801,6 +4202,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ @java.lang.Override @@ -3810,6 +4212,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
@@ -3818,6 +4222,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3825,12 +4230,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
@@ -3839,10 +4246,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; @@ -3850,18 +4258,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; @@ -3870,20 +4282,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 { @@ -3891,54 +4306,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; @@ -3946,34 +4374,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.
      * 
@@ -3994,14 +4435,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(); @@ -4012,6 +4454,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4022,7 +4466,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; } @@ -4034,6 +4480,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4052,6 +4500,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4059,11 +4509,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.
      * 
@@ -4074,11 +4526,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.
      * 
@@ -4086,14 +4541,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_; @@ -4101,36 +4559,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.
@@ -4152,6 +4623,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.
@@ -4159,8 +4632,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();
@@ -4171,6 +4643,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.
@@ -4182,7 +4656,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;
         }
@@ -4194,6 +4670,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.
@@ -4213,6 +4691,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.
@@ -4221,11 +4701,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.
@@ -4237,11 +4719,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.
@@ -4250,26 +4735,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 containerConcurrency_ ;
+    private int containerConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @return The containerConcurrency. */ @java.lang.Override @@ -4277,30 +4768,36 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -4308,24 +4805,33 @@ public Builder clearContainerConcurrency() { 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() { @@ -4336,6 +4842,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4356,14 +4864,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(); @@ -4374,6 +4883,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4384,7 +4895,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; } @@ -4396,6 +4907,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4414,6 +4927,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4421,11 +4936,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.
      * 
@@ -4436,11 +4953,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.
      * 
@@ -4448,14 +4966,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_; @@ -4463,6 +4984,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
@@ -4470,13 +4993,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; @@ -4485,6 +5008,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
@@ -4492,15 +5017,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 { @@ -4508,6 +5032,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
@@ -4515,20 +5041,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
@@ -4536,15 +5064,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
@@ -4552,34 +5083,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.
@@ -4595,6 +5132,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4610,6 +5149,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4625,6 +5166,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4632,8 +5175,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();
@@ -4647,6 +5189,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4666,6 +5210,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4687,6 +5233,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.
@@ -4694,8 +5242,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();
@@ -4709,6 +5256,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4716,8 +5265,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());
@@ -4728,6 +5276,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4747,6 +5297,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4758,8 +5310,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);
@@ -4767,6 +5318,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4785,6 +5338,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4803,6 +5358,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4810,11 +5367,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.
@@ -4822,14 +5380,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.
@@ -4837,8 +5397,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 {
@@ -4846,6 +5406,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4854,10 +5416,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.
@@ -4865,12 +5429,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.
@@ -4878,38 +5443,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.
      * 
@@ -4924,6 +5497,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4938,6 +5513,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4952,14 +5529,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(); @@ -4973,14 +5551,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()); @@ -4991,6 +5570,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5011,14 +5592,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(); @@ -5032,14 +5614,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()); @@ -5050,14 +5633,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()); @@ -5068,6 +5652,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5078,8 +5664,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); @@ -5087,6 +5672,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5104,6 +5691,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5121,39 +5710,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 { @@ -5161,6 +5755,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5168,54 +5764,62 @@ 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_; } - private boolean confidential_ ; + private boolean confidential_; /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @return The confidential. */ @java.lang.Override @@ -5223,30 +5827,36 @@ public boolean getConfidential() { return confidential_; } /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -5254,51 +5864,65 @@ public Builder clearConfidential() { 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. */ @@ -5306,21 +5930,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; @@ -5328,6 +5955,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
@@ -5335,13 +5964,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; @@ -5350,6 +5979,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
@@ -5357,15 +5988,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 { @@ -5373,6 +6003,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
@@ -5380,20 +6012,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
@@ -5401,15 +6035,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
@@ -5417,23 +6054,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
@@ -5441,6 +6080,7 @@ public Builder setEncryptionKeyBytes(
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5448,6 +6088,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
@@ -5455,16 +6097,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
@@ -5472,34 +6117,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) { @@ -5509,12 +6163,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) { @@ -5524,12 +6182,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) { @@ -5539,15 +6201,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(); @@ -5561,12 +6226,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) { @@ -5580,12 +6249,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) { @@ -5601,15 +6274,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(); @@ -5623,15 +6299,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()); @@ -5642,12 +6321,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) { @@ -5661,19 +6344,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); @@ -5681,12 +6367,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) { @@ -5699,12 +6389,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) { @@ -5717,42 +6411,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 { @@ -5760,59 +6465,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
@@ -5820,6 +6540,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 @@ -5827,6 +6548,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
@@ -5834,16 +6557,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
@@ -5851,10 +6577,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; @@ -5862,18 +6589,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; @@ -5882,20 +6611,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 { @@ -5903,54 +6633,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; @@ -5958,19 +6695,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; @@ -5979,21 +6718,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 { @@ -6001,64 +6741,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); } @@ -6068,12 +6815,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(); } @@ -6082,16 +6829,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; @@ -6106,6 +6853,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 dd4009c..b35ab40 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
@@ -131,11 +163,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -150,11 +181,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.
    * 
@@ -163,169 +194,213 @@ 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.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getAnnotationsOrDefault(java.lang.String key, 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
@@ -334,10 +409,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
@@ -346,49 +424,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.
    * 
@@ -398,26 +494,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.
@@ -428,34 +532,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 container_concurrency = 14; + * * @return The containerConcurrency. */ int getContainerConcurrency(); /** + * + * *
    * 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.
    * 
@@ -465,6 +580,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
@@ -472,10 +589,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
@@ -483,12 +603,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.
@@ -496,9 +618,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.
@@ -508,6 +631,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.
@@ -517,6 +642,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -524,9 +651,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.
@@ -534,19 +662,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.
    * 
@@ -555,6 +685,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.
    * 
@@ -563,54 +695,67 @@ 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); /** + * + * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; + * * @return The confidential. */ boolean getConfidential(); /** + * + * *
    * 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
@@ -618,10 +763,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
@@ -629,12 +777,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
@@ -642,60 +792,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
@@ -703,49 +873,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..6cc1aad --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,265 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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#google/cloud/run/v2/condition.proto" + + "\032!google/cloud/run/v2/k8s.min.proto\032)goo" + + "gle/cloud/run/v2/vendor_settings.proto\032#" + + "google/longrunning/operations.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\"G\n\022GetRevisionReque" + + "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" + + "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" + + "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" + + "oogle.cloud.run.v2.Revision\022\027\n\017next_page" + + "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" + + "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" + + "\003 \001(\t\"\314\n\n\010Revision\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.R" + + "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" + + "2..google.cloud.run.v2.Revision.Annotati" + + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "delete_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" + + "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" + + "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" + + "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" + + ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" + + "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" + + "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" + + "\031.google.protobuf.Duration\022\027\n\017service_ac" + + "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" + + ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" + + "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" + + "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" + + "(\0162).google.cloud.run.v2.ExecutionEnviro" + + "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" + + "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" + + "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" + + "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + + "rved_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\340A\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" + + "\022Oprojects/{project}/locations/{location" + + "}/services/{service}/revisions/{revision" + + "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" + + "gle.cloud.run.v2.GetRevisionRequest\032\035.go" + + "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" + + "{name=projects/*/locations/*/services/*/" + + "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." + + "google.cloud.run.v2.ListRevisionsRequest" + + "\032*.google.cloud.run.v2.ListRevisionsResp" + + "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" + + "ations/*/services/*}/revisions\332A\006parent\022" + + "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" + + ".DeleteRevisionRequest\032\035.google.longrunn" + + "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" + + "s/*/locations/*/services/*/revisions/*}\332" + + "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformBb\n\027com.google.clou" + + "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.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", + "ContainerConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "Confidential", + "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.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.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 b4989ef..94f8fb6 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,56 +68,61 @@ 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) { throw e.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 @@ -112,11 +133,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 @@ -125,6 +149,7 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +161,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_); } @@ -154,12 +178,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; @@ -169,17 +191,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; } @@ -200,118 +220,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() @@ -319,16 +348,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(); @@ -340,9 +368,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 @@ -361,7 +389,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(); @@ -372,38 +401,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; @@ -447,13 +477,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 @@ -461,42 +494,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 @@ -504,37 +546,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); } @@ -544,12 +592,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(); } @@ -558,16 +606,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; @@ -582,6 +630,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 6e76020..8248e5a 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,137 +77,151 @@ 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 56:
+            {
+              containerConcurrency_ = input.readInt32();
+              break;
             }
+          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 56: {
-
-            containerConcurrency_ = input.readInt32();
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          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 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;
+          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;
             }
-            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 96:
+            {
+              confidential_ = input.readBool();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 96: {
+          case 104:
+            {
+              int rawValue = input.readEnum();
 
-            confidential_ = input.readBool();
-            break;
-          }
-          case 104: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              executionEnvironment_ = rawValue;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            encryptionKey_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              encryptionKey_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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_);
@@ -202,42 +233,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 @@ -246,30 +282,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 { @@ -278,24 +314,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_; } @@ -304,28 +339,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -333,11 +370,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.
    * 
@@ -345,16 +383,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -362,12 +400,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -375,24 +412,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_; } @@ -401,28 +438,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -430,11 +469,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.
    * 
@@ -442,16 +482,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -459,12 +500,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -474,11 +514,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 @@ -486,18 +529,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.
    * 
@@ -512,12 +562,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 @@ -525,12 +578,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 @@ -538,6 +594,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.
@@ -553,11 +611,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 7;
   private int containerConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 7; + * * @return The containerConcurrency. */ @java.lang.Override @@ -568,11 +629,14 @@ public int getContainerConcurrency() { 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 @@ -580,11 +644,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 @@ -592,6 +659,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.
    * 
@@ -606,6 +675,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
@@ -614,6 +685,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -622,14 +694,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
@@ -638,16 +711,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 { @@ -658,6 +730,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.
@@ -670,6 +744,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -678,11 +754,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.
@@ -695,6 +773,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -707,6 +787,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.
@@ -715,14 +797,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.
    * 
@@ -734,6 +817,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -741,11 +826,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.
    * 
@@ -757,6 +844,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -768,6 +857,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -775,19 +866,21 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 12; private boolean confidential_; /** + * + * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; + * * @return The confidential. */ @java.lang.Override @@ -798,33 +891,44 @@ public boolean getConfidential() { 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
@@ -832,6 +936,7 @@ public boolean getConfidential() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -840,14 +945,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
@@ -855,16 +961,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 { @@ -873,6 +978,7 @@ public java.lang.String getEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -884,23 +990,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()); } @@ -925,7 +1022,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (confidential_ != false) { output.writeBool(12, confidential_); } - 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_)) { @@ -943,60 +1042,54 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, confidential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, confidential_); } - 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_); @@ -1009,47 +1102,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 (getContainerConcurrency() - != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() != other.getContainerConcurrency()) 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 (getConfidential() - != other.getConfidential()) 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 (getConfidential() != other.getConfidential()) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1096,8 +1177,7 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; @@ -1107,97 +1187,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.
@@ -1205,47 +1292,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()
@@ -1253,18 +1340,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();
@@ -1316,9 +1403,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
@@ -1337,7 +1424,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();
@@ -1390,38 +1478,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;
@@ -1434,10 +1523,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());
       }
@@ -1472,9 +1559,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_);
           }
@@ -1498,9 +1586,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_);
           }
@@ -1544,23 +1633,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; @@ -1569,21 +1661,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 { @@ -1591,78 +1684,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(); @@ -1674,28 +1773,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1703,11 +1804,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.
      * 
@@ -1715,16 +1817,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1732,12 +1835,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1745,80 +1847,81 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -1830,28 +1933,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1859,11 +1964,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.
      * 
@@ -1871,16 +1977,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1888,12 +1995,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1901,94 +2007,106 @@ 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 java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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.
      * 
@@ -2009,14 +2127,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(); @@ -2027,6 +2146,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2037,7 +2158,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; } @@ -2049,6 +2172,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2067,6 +2192,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2074,11 +2201,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.
      * 
@@ -2089,11 +2218,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.
      * 
@@ -2101,14 +2233,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_; @@ -2116,36 +2251,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.
@@ -2167,6 +2315,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.
@@ -2174,8 +2324,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();
@@ -2186,6 +2335,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.
@@ -2197,7 +2348,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;
         }
@@ -2209,6 +2362,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.
@@ -2228,6 +2383,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.
@@ -2236,11 +2393,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.
@@ -2252,11 +2411,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.
@@ -2265,26 +2427,32 @@ 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_;
     }
 
-    private int containerConcurrency_ ;
+    private int containerConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @return The containerConcurrency. */ @java.lang.Override @@ -2292,30 +2460,36 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -2323,24 +2497,33 @@ public Builder clearContainerConcurrency() { 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() { @@ -2351,6 +2534,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2371,14 +2556,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(); @@ -2389,6 +2575,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2399,7 +2587,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; } @@ -2411,6 +2599,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2429,6 +2619,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2436,11 +2628,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.
      * 
@@ -2451,11 +2645,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.
      * 
@@ -2463,14 +2658,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_; @@ -2478,6 +2676,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
@@ -2486,13 +2686,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; @@ -2501,6 +2701,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
@@ -2509,15 +2711,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 { @@ -2525,6 +2726,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
@@ -2533,20 +2736,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
@@ -2555,15 +2760,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
@@ -2572,34 +2780,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.
@@ -2615,6 +2829,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2630,6 +2846,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2645,6 +2863,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2652,8 +2872,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();
@@ -2667,6 +2886,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2686,6 +2907,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2707,6 +2930,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.
@@ -2714,8 +2939,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();
@@ -2729,6 +2953,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2736,8 +2962,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());
@@ -2748,6 +2973,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2767,6 +2994,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2778,8 +3007,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);
@@ -2787,6 +3015,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2805,6 +3035,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2823,6 +3055,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2830,11 +3064,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.
@@ -2842,14 +3077,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.
@@ -2857,8 +3094,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 {
@@ -2866,6 +3103,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2874,10 +3113,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.
@@ -2885,12 +3126,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.
@@ -2898,38 +3140,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.
      * 
@@ -2944,6 +3194,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2958,6 +3210,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2972,14 +3226,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(); @@ -2993,14 +3248,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()); @@ -3011,6 +3267,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3031,14 +3289,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(); @@ -3052,14 +3311,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()); @@ -3070,14 +3330,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()); @@ -3088,6 +3349,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3098,8 +3361,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); @@ -3107,6 +3369,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3124,6 +3388,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3141,39 +3407,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 { @@ -3181,6 +3452,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3188,54 +3461,62 @@ 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_; } - private boolean confidential_ ; + private boolean confidential_; /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @return The confidential. */ @java.lang.Override @@ -3243,30 +3524,36 @@ public boolean getConfidential() { return confidential_; } /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -3274,51 +3561,65 @@ public Builder clearConfidential() { 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. */ @@ -3326,21 +3627,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; @@ -3348,6 +3652,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
@@ -3355,13 +3661,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; @@ -3370,6 +3676,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
@@ -3377,15 +3685,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 { @@ -3393,6 +3700,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
@@ -3400,20 +3709,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
@@ -3421,15 +3732,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
@@ -3437,23 +3751,23 @@ 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; } + @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); } @@ -3463,12 +3777,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(); } @@ -3477,16 +3791,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; @@ -3501,6 +3815,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 7f49247..bcd3b92 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,52 +61,52 @@ 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.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -92,70 +115,76 @@ 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.
    * 
* * map<string, string> annotations = 3; */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getAnnotationsOrDefault(java.lang.String key, 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.
    * 
@@ -165,26 +194,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.
@@ -195,34 +232,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 container_concurrency = 7; + * * @return The containerConcurrency. */ int getContainerConcurrency(); /** + * + * *
    * 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.
    * 
@@ -232,6 +280,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
@@ -240,10 +290,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
@@ -252,12 +305,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.
@@ -265,9 +320,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.
@@ -277,6 +333,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.
@@ -286,6 +344,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -293,9 +353,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.
@@ -303,19 +364,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.
    * 
@@ -324,6 +387,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.
    * 
@@ -332,54 +397,67 @@ 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); /** + * + * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; + * * @return The confidential. */ boolean getConfidential(); /** + * + * *
    * 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
@@ -387,10 +465,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
@@ -398,8 +479,8 @@ 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(); } 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..ef62fbd --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" + + "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" + + "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" + + "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" + + ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" + + "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" + + "_environment\030\r \001(\0162).google.cloud.run.v2" + + ".ExecutionEnvironment\022>\n\016encryption_key\030" + + "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\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\001Bj\n\027com.google.c" + + "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/run/v2;runb\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", + "ContainerConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "Confidential", + "ExecutionEnvironment", + "EncryptionKey", + }); + 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 c589f6a..ed5a8dd 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,53 +71,59 @@ 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) { throw e.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.
@@ -108,7 +131,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 @@ -117,14 +143,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.
@@ -132,17 +159,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 { @@ -153,12 +181,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 @@ -167,30 +198,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 { @@ -199,6 +230,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,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_); } @@ -241,17 +272,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; } @@ -272,118 +302,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() @@ -391,16 +430,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(); @@ -412,9 +450,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 @@ -433,7 +471,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(); @@ -444,38 +483,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; @@ -523,6 +563,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.
@@ -530,14 +572,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; @@ -546,6 +590,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.
@@ -553,16 +599,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 { @@ -570,6 +617,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.
@@ -577,21 +626,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.
@@ -599,16 +652,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.
@@ -616,17 +674,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; @@ -634,19 +694,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; @@ -655,21 +717,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 { @@ -677,64 +740,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); } @@ -744,12 +814,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(); } @@ -758,16 +828,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; @@ -782,6 +852,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 6b0fa63..c94c0cc 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,40 +74,42 @@ 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) {
       throw e.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_);
@@ -99,22 +118,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.
@@ -123,6 +147,7 @@ private SecretVolumeSource(
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secret. */ @java.lang.Override @@ -131,14 +156,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.
@@ -147,16 +173,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 { @@ -167,6 +192,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.
@@ -182,6 +209,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.
@@ -193,11 +222,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.
@@ -213,6 +244,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.
@@ -228,6 +261,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.
@@ -239,14 +274,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.
@@ -266,6 +302,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
    * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -274,6 +311,7 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +323,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_); } @@ -309,12 +346,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; @@ -324,19 +359,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; } @@ -361,97 +394,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
@@ -460,21 +500,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()
@@ -482,17 +524,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();
@@ -510,9 +552,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
@@ -531,7 +573,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) {
@@ -552,38 +595,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;
@@ -614,9 +658,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_);
           }
@@ -653,10 +698,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.
@@ -665,13 +713,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; @@ -680,6 +728,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.
@@ -688,15 +738,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 { @@ -704,6 +753,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.
@@ -712,20 +763,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.
@@ -734,15 +787,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.
@@ -751,34 +807,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.
@@ -797,6 +859,8 @@ public java.util.List getItemsList() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -815,6 +879,8 @@ public int getItemsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -833,6 +899,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.
@@ -843,8 +911,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();
@@ -858,6 +925,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -880,6 +949,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -904,6 +975,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.
@@ -914,8 +987,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();
@@ -929,6 +1001,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -939,8 +1013,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());
@@ -951,6 +1024,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -973,6 +1048,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -987,8 +1064,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);
@@ -996,6 +1072,8 @@ public Builder addAllItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1017,6 +1095,8 @@ public Builder clearItems() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1038,6 +1118,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.
@@ -1048,11 +1130,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.
@@ -1063,14 +1146,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.
@@ -1081,8 +1166,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 {
@@ -1090,6 +1175,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.
@@ -1101,10 +1188,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.
@@ -1115,12 +1204,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.
@@ -1131,27 +1221,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.
@@ -1171,6 +1265,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
      * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -1178,6 +1273,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.
@@ -1197,16 +1294,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.
@@ -1226,17 +1326,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); } @@ -1246,12 +1347,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(); } @@ -1260,16 +1361,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; @@ -1284,6 +1385,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 71% 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 62e24ea..7bdd5f1 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,257 +90,293 @@ 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();
-            }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
+              creator_ = s;
+              break;
             }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            creator_ = s;
-            break;
-          }
-          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();
+          case 274:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            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;
+              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) {
       throw e.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_);
@@ -338,29 +391,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);
   }
@@ -368,6 +422,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
@@ -377,6 +433,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -385,14 +442,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
@@ -402,16 +460,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 { @@ -422,12 +479,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 @@ -436,30 +496,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 { @@ -470,12 +530,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 @@ -484,30 +547,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 { @@ -518,12 +581,15 @@ 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.
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -532,24 +598,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_; } @@ -558,6 +623,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -573,22 +640,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
@@ -605,11 +672,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.
@@ -626,16 +694,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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.
@@ -652,12 +720,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -665,24 +732,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_;
   }
@@ -691,6 +758,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
@@ -702,22 +771,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
-
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -730,11 +799,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
@@ -747,16 +817,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -769,12 +840,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -784,11 +854,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 @@ -796,11 +870,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 @@ -808,11 +886,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() { @@ -822,11 +903,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 @@ -834,11 +919,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 @@ -846,11 +935,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() { @@ -860,11 +952,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 @@ -872,11 +968,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 @@ -884,11 +984,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() { @@ -898,12 +1001,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 @@ -911,12 +1018,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 @@ -924,12 +1035,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() { @@ -939,11 +1053,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 @@ -952,29 +1069,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 { @@ -985,11 +1102,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 @@ -998,29 +1118,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 { @@ -1031,11 +1151,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 @@ -1044,29 +1167,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 { @@ -1077,11 +1200,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 @@ -1090,29 +1216,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 { @@ -1123,6 +1249,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
@@ -1130,12 +1258,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
@@ -1143,17 +1275,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).
@@ -1162,12 +1299,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).
@@ -1176,9 +1317,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; @@ -1187,11 +1330,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 @@ -1199,18 +1345,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.
    * 
@@ -1225,11 +1378,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 @@ -1237,23 +1395,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() { @@ -1263,6 +1432,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
@@ -1276,6 +1447,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
@@ -1285,11 +1458,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
@@ -1303,6 +1478,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
@@ -1316,6 +1493,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
@@ -1325,14 +1504,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
@@ -1340,6 +1520,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 @@ -1350,6 +1531,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
@@ -1357,7 +1540,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 @@ -1365,6 +1551,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
@@ -1372,14 +1560,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
@@ -1387,7 +1582,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() { @@ -1397,6 +1594,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
@@ -1404,13 +1603,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
@@ -1418,14 +1621,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
@@ -1433,13 +1640,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
@@ -1447,13 +1658,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
@@ -1461,24 +1676,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 @@ -1487,31 +1708,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 { @@ -1522,12 +1745,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 @@ -1536,30 +1764,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 { @@ -1570,66 +1800,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( @@ -1640,11 +1890,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 @@ -1653,29 +1906,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 { @@ -1686,6 +1939,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.
@@ -1709,6 +1964,7 @@ public java.lang.String getUri() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1719,12 +1975,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 @@ -1733,30 +1992,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 { @@ -1765,6 +2024,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1776,8 +2036,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_); } @@ -1790,18 +2049,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()); } @@ -1826,7 +2077,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()) { @@ -1887,44 +2139,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_); @@ -1938,37 +2185,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_); @@ -1977,15 +2218,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_); @@ -1998,88 +2237,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; } @@ -2098,8 +2311,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(); @@ -2149,8 +2361,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(); @@ -2170,8 +2381,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(); @@ -2179,97 +2389,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.
@@ -2280,45 +2496,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);
     }
@@ -2328,19 +2543,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();
@@ -2442,9 +2657,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
@@ -2555,38 +2770,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;
@@ -2610,10 +2826,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());
       }
@@ -2672,9 +2886,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_);
           }
@@ -2704,9 +2919,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_);
           }
@@ -2738,9 +2954,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_);
           }
@@ -2785,10 +3002,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
@@ -2798,13 +3018,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; @@ -2813,6 +3033,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
@@ -2822,15 +3044,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 { @@ -2838,6 +3059,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
@@ -2847,20 +3070,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
@@ -2870,15 +3095,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
@@ -2888,16 +3116,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; @@ -2905,19 +3133,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; @@ -2926,21 +3156,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 { @@ -2948,57 +3179,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; @@ -3006,19 +3244,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; @@ -3027,21 +3267,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 { @@ -3049,70 +3290,80 @@ 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.
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -3120,53 +3371,58 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * 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.
      * 
* * 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(); @@ -3178,6 +3434,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3193,22 +3451,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
@@ -3225,11 +3483,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.
@@ -3246,16 +3505,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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.
@@ -3272,12 +3532,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3285,11 +3544,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.
@@ -3305,23 +3565,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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.
@@ -3337,16 +3595,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3362,30 +3623,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();
@@ -3397,6 +3657,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
@@ -3408,22 +3670,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
-
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -3436,11 +3698,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
@@ -3453,16 +3716,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3475,12 +3739,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3488,11 +3751,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
@@ -3504,23 +3768,21 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3532,16 +3794,19 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3553,49 +3818,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) { @@ -3611,14 +3892,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(); @@ -3629,17 +3913,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; } @@ -3651,11 +3939,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) { @@ -3669,48 +3961,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_; @@ -3718,39 +4026,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) { @@ -3766,14 +4093,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(); @@ -3784,17 +4114,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; } @@ -3806,11 +4140,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) { @@ -3824,48 +4162,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_; @@ -3873,39 +4227,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) { @@ -3921,14 +4294,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(); @@ -3939,17 +4315,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; } @@ -3961,11 +4341,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) { @@ -3979,48 +4363,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_; @@ -4028,42 +4428,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) { @@ -4079,15 +4498,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(); @@ -4098,18 +4520,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; } @@ -4121,12 +4547,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) { @@ -4140,51 +4570,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_; @@ -4192,18 +4638,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; @@ -4212,20 +4660,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 { @@ -4233,54 +4682,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; @@ -4288,18 +4744,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; @@ -4308,20 +4766,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 { @@ -4329,54 +4788,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; @@ -4384,18 +4850,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; @@ -4404,20 +4872,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 { @@ -4425,54 +4894,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; @@ -4480,18 +4956,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; @@ -4500,20 +4978,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 { @@ -4521,54 +5000,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; @@ -4576,6 +5062,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
@@ -4583,12 +5071,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
@@ -4596,16 +5088,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
@@ -4613,15 +5108,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
@@ -4629,6 +5128,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. */ @@ -4636,12 +5136,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
@@ -4649,10 +5151,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; @@ -4660,6 +5163,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).
@@ -4668,12 +5173,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).
@@ -4682,16 +5191,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).
@@ -4700,6 +5212,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ @java.lang.Override @@ -4709,6 +5222,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).
@@ -4717,6 +5232,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4724,12 +5240,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).
@@ -4738,10 +5256,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; @@ -4749,34 +5268,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.
      * 
@@ -4797,6 +5329,8 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4815,6 +5349,8 @@ public Builder setBinaryAuthorization( return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4825,7 +5361,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; } @@ -4837,6 +5375,8 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4855,6 +5395,8 @@ public Builder clearBinaryAuthorization() { return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4862,11 +5404,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.
      * 
@@ -4877,11 +5421,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.
      * 
@@ -4889,14 +5436,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_; @@ -4904,39 +5454,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) { @@ -4952,14 +5521,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(); @@ -4970,17 +5542,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; } @@ -4992,11 +5570,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) { @@ -5010,66 +5592,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
@@ -5086,6 +5690,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
@@ -5102,6 +5708,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
@@ -5118,6 +5726,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
@@ -5126,8 +5736,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();
@@ -5141,6 +5750,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
@@ -5161,6 +5772,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
@@ -5183,6 +5796,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
@@ -5191,8 +5806,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();
@@ -5206,6 +5820,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
@@ -5214,8 +5830,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());
@@ -5226,6 +5841,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
@@ -5246,6 +5863,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
@@ -5258,8 +5877,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);
@@ -5267,6 +5885,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
@@ -5286,6 +5906,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
@@ -5305,6 +5927,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
@@ -5313,11 +5937,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
@@ -5326,14 +5951,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
@@ -5342,8 +5969,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 {
@@ -5351,6 +5978,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
@@ -5360,10 +5989,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
@@ -5372,12 +6003,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
@@ -5386,27 +6018,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
@@ -5414,6 +6050,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 @@ -5421,6 +6058,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
@@ -5428,16 +6067,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
@@ -5445,10 +6087,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; @@ -5456,8 +6099,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
@@ -5465,13 +6113,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
@@ -5479,17 +6132,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
@@ -5497,7 +6157,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) { @@ -5513,6 +6175,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
@@ -5520,10 +6184,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(); @@ -5534,6 +6199,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
@@ -5541,13 +6208,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; } @@ -5559,6 +6230,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
@@ -5566,7 +6239,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) { @@ -5580,6 +6255,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
@@ -5587,14 +6264,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
@@ -5602,17 +6283,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
@@ -5620,35 +6306,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
@@ -5656,7 +6353,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) { @@ -5666,6 +6365,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
@@ -5673,7 +6374,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) { @@ -5683,6 +6386,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
@@ -5690,7 +6395,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) { @@ -5700,6 +6407,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
@@ -5707,10 +6416,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(); @@ -5724,6 +6434,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
@@ -5731,7 +6443,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) { @@ -5745,6 +6459,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
@@ -5752,7 +6468,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) { @@ -5768,6 +6486,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
@@ -5775,10 +6495,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(); @@ -5792,6 +6513,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
@@ -5799,10 +6522,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()); @@ -5813,6 +6537,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
@@ -5820,7 +6546,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) { @@ -5834,6 +6562,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
@@ -5841,14 +6571,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); @@ -5856,6 +6587,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
@@ -5863,7 +6596,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) { @@ -5876,6 +6611,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
@@ -5883,7 +6620,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) { @@ -5896,6 +6635,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
@@ -5903,13 +6644,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
@@ -5917,16 +6661,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
@@ -5934,10 +6682,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 { @@ -5945,6 +6695,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
@@ -5952,13 +6704,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
@@ -5966,14 +6722,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
@@ -5981,22 +6740,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_; @@ -6004,20 +6767,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; @@ -6026,22 +6793,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 { @@ -6049,60 +6819,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; @@ -6110,19 +6893,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; @@ -6131,21 +6918,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 { @@ -6153,82 +6943,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) { @@ -6238,13 +7050,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) { @@ -6254,13 +7070,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) { @@ -6270,13 +7090,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) { @@ -6293,13 +7117,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) { @@ -6313,13 +7141,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) { @@ -6335,13 +7167,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) { @@ -6358,13 +7194,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) { @@ -6378,13 +7218,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) { @@ -6398,20 +7242,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); @@ -6419,13 +7266,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) { @@ -6438,13 +7289,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) { @@ -6457,45 +7312,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 { @@ -6503,51 +7371,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(), @@ -6559,18 +7445,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; @@ -6579,20 +7467,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 { @@ -6600,61 +7489,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.
@@ -6678,6 +7576,7 @@ public Builder setUriBytes(
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -6685,6 +7584,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.
@@ -6708,16 +7609,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.
@@ -6741,10 +7645,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; @@ -6752,19 +7657,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; @@ -6773,21 +7680,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 { @@ -6795,64 +7703,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); } @@ -6862,12 +7777,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(); } @@ -6876,16 +7791,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; @@ -6900,6 +7815,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 79% 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 584cf8e..a710e51 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,67 +51,82 @@ 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.
    * 
* * 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.
@@ -108,6 +144,8 @@ public interface ServiceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -123,15 +161,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.
@@ -147,9 +183,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.
@@ -165,11 +202,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -185,11 +221,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
@@ -203,6 +239,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
@@ -214,15 +252,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
@@ -234,9 +270,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
@@ -248,11 +285,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 6;
    */
-
-  java.lang.String getAnnotationsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getAnnotationsOrDefault(java.lang.String key, 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
@@ -264,202 +300,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
@@ -467,10 +567,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
@@ -478,11 +581,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).
@@ -491,10 +597,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).
@@ -503,29 +612,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.
    * 
@@ -535,33 +653,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
@@ -570,9 +704,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
@@ -583,6 +718,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
@@ -593,6 +730,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
@@ -601,9 +740,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
@@ -612,10 +753,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
@@ -623,11 +765,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
@@ -635,11 +780,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
@@ -647,11 +797,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
@@ -659,11 +814,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
@@ -671,11 +830,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
@@ -683,10 +845,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
@@ -694,10 +860,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
@@ -705,11 +875,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
@@ -717,132 +890,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.
@@ -866,29 +1083,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..b941a5b --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,331 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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#google/cloud/run/v2/condition.proto\032" + + "+google/cloud/run/v2/revision_template.p" + + "roto\032(google/cloud/run/v2/traffic_target" + + ".proto\032)google/cloud/run/v2/vendor_setti" + + "ngs.proto\032\036google/iam/v1/iam_policy.prot" + + "o\032\032google/iam/v1/policy.proto\032#google/lo" + + "ngrunning/operations.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" + + "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" + + "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" + + "ud.run.v2.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\"\251\001\n\024Updat" + + "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" + + "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + + "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" + + "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" + + "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" + + ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" + + "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032run.googleapis.com/Service\"m\n\024DeleteSer" + + "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" + + "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" + + "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" + + "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\n \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" + + "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" + + "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." + + "google.cloud.run.v2.IngressTraffic\022-\n\014la" + + "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" + + "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" + + ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" + + "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" + + "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" + + "e.cloud.run.v2.TrafficTarget\022 \n\023observed" + + "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + + "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + + "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + + "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + + "com/Revision\022D\n\027latest_created_revision\030" + + "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + + "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + + "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + + "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" + + "A[\n\032run.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" + + "vice\022).google.cloud.run.v2.CreateService" + + "Request\032\035.google.longrunning.Operation\"n" + + "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" + + "/*}/services:\007service\332A\031parent,service,s" + + "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" + + "rvice\022&.google.cloud.run.v2.GetServiceRe" + + "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" + + "\223\002.\022,/v2/{name=projects/*/locations/*/se" + + "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" + + "le.cloud.run.v2.ListServicesRequest\032).go" + + "ogle.cloud.run.v2.ListServicesResponse\"=" + + "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" + + "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" + + ").google.cloud.run.v2.UpdateServiceReque" + + "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + + "?24/v2/{service.name=projects/*/location" + + "s/*/services/*}:\007service\332A\023service,updat" + + "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" + + "rvice\022).google.cloud.run.v2.DeleteServic" + + "eRequest\032\035.google.longrunning.Operation\"" + + "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" + + "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" + + "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" + + "\323\344\223\002?\022=/v2/{resource=projects/*/location" + + "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" + + "esource=projects/*/locations/*/services/" + + "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" + + "s\022(.google.iam.v1.TestIamPermissionsRequ" + + "est\032).google.iam.v1.TestIamPermissionsRe" + + "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" + + "/locations/*/services/*}:testIamPermissi" + + "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformBa" + + "\n\027com.google.cloud.run.v2B\014ServiceProtoP" + + "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 0ef80e2..fbe4964 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,97 +73,116 @@ 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) {
       throw e.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 @@ -155,30 +191,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 { @@ -189,12 +225,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 @@ -205,12 +244,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 @@ -219,30 +261,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 { @@ -251,6 +293,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,9 +305,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_)) { @@ -285,16 +330,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_); @@ -307,7 +353,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); @@ -315,12 +361,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; } @@ -345,97 +388,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.
@@ -443,21 +492,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()
@@ -465,16 +516,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,9 +540,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
@@ -511,7 +561,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_;
@@ -524,38 +575,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;
@@ -609,51 +661,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. */ @@ -661,21 +729,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; @@ -683,19 +754,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; @@ -704,21 +777,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 { @@ -726,70 +800,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 @@ -797,32 +881,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; @@ -830,19 +920,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; @@ -851,21 +943,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 { @@ -873,64 +966,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); } @@ -940,12 +1040,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(); } @@ -954,16 +1054,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; @@ -978,6 +1078,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 e8e6bb2..602738c 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,102 +73,122 @@ 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) { throw e.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 @@ -160,29 +197,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 { @@ -193,11 +230,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 @@ -208,11 +248,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 @@ -221,29 +264,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 { @@ -254,11 +297,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 @@ -267,29 +313,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 { @@ -298,6 +344,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,9 +356,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_)) { @@ -335,16 +384,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_); @@ -360,22 +410,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; } @@ -402,118 +449,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() @@ -521,16 +577,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(); @@ -548,9 +603,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 @@ -569,7 +624,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_; @@ -583,38 +639,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; @@ -672,51 +729,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. */ @@ -724,21 +797,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; @@ -746,18 +822,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; @@ -766,20 +844,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 { @@ -787,66 +866,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 @@ -854,30 +943,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; @@ -885,18 +980,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; @@ -905,20 +1002,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 { @@ -926,54 +1024,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; @@ -981,18 +1086,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; @@ -1001,20 +1108,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 { @@ -1022,61 +1130,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); } @@ -1086,12 +1201,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(); } @@ -1100,16 +1215,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; @@ -1124,6 +1239,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 159e5af..90b5d1f 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,82 +68,92 @@ 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(); + 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 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = 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) { throw e.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 @@ -135,11 +161,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 @@ -147,11 +177,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() { @@ -161,11 +194,14 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,11 +209,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -185,6 +224,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -199,12 +240,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { 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 @@ -215,6 +259,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
@@ -222,6 +268,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -230,6 +277,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +289,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()); } @@ -265,20 +312,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } 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; @@ -288,27 +331,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.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 (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) 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; } @@ -329,128 +369,135 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().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() @@ -458,16 +505,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(); @@ -491,9 +537,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 @@ -512,7 +558,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 { @@ -533,38 +580,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; @@ -616,24 +664,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() { @@ -644,11 +703,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) { @@ -664,14 +726,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(); @@ -682,17 +746,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; } @@ -704,11 +771,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) { @@ -722,48 +792,59 @@ 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_; @@ -771,34 +852,47 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -819,14 +913,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -837,6 +932,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -847,7 +944,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -859,6 +956,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -877,6 +976,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -884,11 +985,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -899,11 +1002,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -911,27 +1017,33 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } - 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 @@ -939,39 +1051,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
@@ -979,6 +1099,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -986,6 +1107,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
@@ -993,16 +1116,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
@@ -1010,17 +1136,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); } @@ -1030,12 +1157,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(); } @@ -1044,16 +1171,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; @@ -1068,6 +1195,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 70% 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 762d65e..f58d267 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,58 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
@@ -62,17 +97,22 @@ public interface UpdateServiceRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * 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
@@ -80,6 +120,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..7bd1d6a --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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*\200\001\n" + + "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" + + "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" + + "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" + + "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" + + "orSettingsProtoP\001Z6google.golang.org/gen" + + "proto/googleapis/cloud/run/v2;runb\006proto" + + "3" + }; + 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 ecc9703..d6fcd28 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,63 +72,70 @@ 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) {
       throw e.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 @@ -120,29 +144,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 { @@ -153,12 +177,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 @@ -167,30 +194,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 { @@ -201,6 +228,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
@@ -218,6 +247,7 @@ public java.lang.String getVersion() {
    * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -226,6 +256,7 @@ public int getMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -264,8 +294,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; @@ -275,19 +304,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; } @@ -310,97 +336,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.
@@ -408,21 +440,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()
@@ -430,16 +464,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();
@@ -453,9 +486,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
@@ -474,7 +507,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_;
@@ -486,38 +520,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;
@@ -568,18 +603,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; @@ -588,20 +625,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 { @@ -609,54 +647,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; @@ -664,19 +709,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; @@ -685,21 +732,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 { @@ -707,64 +755,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
@@ -782,6 +839,7 @@ public Builder setVersionBytes(
      * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -789,6 +847,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
@@ -806,16 +866,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
@@ -833,17 +896,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); } @@ -853,12 +917,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(); } @@ -867,16 +931,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; @@ -891,6 +955,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 7ab833e..a83f1bb 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,81 +70,90 @@ 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) { throw e.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; } @@ -143,31 +169,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 @@ -176,29 +208,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 { @@ -208,12 +240,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 @@ -221,22 +256,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
@@ -247,13 +287,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
@@ -261,6 +303,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 @@ -268,6 +311,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
@@ -275,16 +320,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
@@ -296,12 +344,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;
@@ -313,8 +362,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_);
     }
@@ -337,12 +385,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;
@@ -352,24 +402,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:
@@ -404,116 +451,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); } @@ -523,16 +577,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(); @@ -544,9 +597,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 @@ -590,38 +643,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; @@ -635,17 +689,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(); @@ -675,12 +732,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() { @@ -690,21 +747,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; @@ -713,20 +771,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 { @@ -734,68 +793,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 @@ -803,12 +875,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 @@ -826,6 +901,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
@@ -847,6 +924,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
@@ -854,8 +933,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();
@@ -866,6 +944,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
@@ -875,10 +955,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;
         }
@@ -893,6 +976,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
@@ -917,6 +1002,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
@@ -928,6 +1015,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
@@ -947,6 +1036,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
@@ -955,27 +1046,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
@@ -983,6 +1085,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 @@ -990,6 +1093,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
@@ -997,6 +1102,7 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1014,6 +1120,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
@@ -1036,6 +1144,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
@@ -1056,6 +1166,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
@@ -1066,10 +1178,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;
         }
@@ -1084,6 +1199,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
@@ -1109,6 +1226,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
@@ -1121,6 +1240,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
@@ -1141,6 +1262,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
@@ -1150,26 +1273,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);
     }
 
@@ -1179,12 +1308,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();
   }
@@ -1193,16 +1322,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;
@@ -1217,6 +1346,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 72%
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 80d67dd..fc02e02 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,58 +71,65 @@ 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) { throw e.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 @@ -114,29 +138,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 { @@ -147,6 +171,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
@@ -156,6 +182,7 @@ public java.lang.String getName() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ @java.lang.Override @@ -164,14 +191,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
@@ -181,16 +209,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 { @@ -199,6 +226,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +238,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_); } @@ -241,17 +268,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; } @@ -272,118 +297,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() @@ -391,16 +424,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +444,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 @@ -444,38 +476,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; @@ -523,18 +556,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; @@ -543,20 +578,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 { @@ -564,54 +600,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; @@ -619,6 +662,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
@@ -628,13 +673,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; @@ -643,6 +688,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
@@ -652,15 +699,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 { @@ -668,6 +714,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
@@ -677,20 +725,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
@@ -700,15 +750,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
@@ -718,23 +771,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); } @@ -744,12 +797,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(); } @@ -758,16 +811,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; @@ -782,6 +835,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 0493935..7bfcdf2 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,60 +74,67 @@ 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) {
       throw e.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
      * 
@@ -119,6 +143,8 @@ public enum VpcEgress */ VPC_EGRESS_UNSPECIFIED(0), /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -127,6 +153,8 @@ public enum VpcEgress */ ALL_TRAFFIC(1), /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -138,6 +166,8 @@ public enum VpcEgress ; /** + * + * *
      * Unspecified
      * 
@@ -146,6 +176,8 @@ public enum VpcEgress */ public static final int VPC_EGRESS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -154,6 +186,8 @@ public enum VpcEgress */ public static final int ALL_TRAFFIC_VALUE = 1; /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -162,7 +196,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( @@ -187,49 +220,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; @@ -249,12 +282,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 @@ -263,30 +299,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 { @@ -297,31 +333,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; @@ -333,8 +379,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_); } @@ -354,8 +399,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; @@ -365,15 +409,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; @@ -395,97 +438,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
@@ -495,21 +544,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()
@@ -517,16 +568,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();
@@ -538,9 +588,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
@@ -570,38 +620,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;
@@ -648,19 +699,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; @@ -669,21 +722,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 { @@ -691,57 +745,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; @@ -749,51 +810,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. */ @@ -801,28 +876,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); } @@ -832,12 +910,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(); } @@ -846,16 +924,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; @@ -870,6 +948,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 From 1a7e9ed76069a6dfc1edd5b00cf3e1bc80e93209 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 19 Apr 2022 21:32:22 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/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 - .../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 .../cloud/run/v2/RevisionsClientTest.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 | 106 - .../run/v2/GetRevisionRequestOrBuilder.java | 33 - .../run/v2/GetServiceRequestOrBuilder.java | 31 - .../com/google/cloud/run/v2/K8sMinProto.java | 226 -- .../google/cloud/run/v2/RevisionProto.java | 219 -- .../cloud/run/v2/RevisionTemplateProto.java | 108 - .../com/google/cloud/run/v2/ServiceProto.java | 281 -- .../cloud/run/v2/TrafficTargetProto.java | 81 - .../cloud/run/v2/VendorSettingsProto.java | 97 - .../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 | 1686 +++++--- .../cloud/run/v2/ConditionOrBuilder.java | 101 +- .../google/cloud/run/v2/ConditionProto.java | 131 + .../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 | 53 +- .../com/google/cloud/run/v2/Revision.java | 2975 ++++++++------ .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 349 +- .../google/cloud/run/v2/RevisionProto.java | 265 ++ .../google/cloud/run/v2/RevisionScaling.java | 290 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1682 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 183 +- .../cloud/run/v2/RevisionTemplateProto.java | 137 + .../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 | 429 ++- .../com/google/cloud/run/v2/ServiceProto.java | 331 ++ .../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 | 517 ++- .../run/v2/UpdateServiceRequestOrBuilder.java | 49 +- .../cloud/run/v2/VendorSettingsProto.java | 114 + .../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 113 files changed, 18435 insertions(+), 11601 deletions(-) rename {owl-bot-staging/v2/google-cloud-run => google-cloud-run}/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (97%) 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/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/RevisionsClientTest.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 (72%) 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 (77%) 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 (86%) 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 (69%) 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 (69%) 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 (68%) 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 (65%) 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 (65%) 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 (71%) 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 (71%) 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 (79%) 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 (70%) 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 (72%) 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%) 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 97% 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 30549ca..f00635b 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 @@ -58,13 +58,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. *
* @@ -552,7 +552,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( @@ -602,7 +605,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 113e42b..5dc170f 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 @@ -28,7 +28,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; @@ -44,9 +43,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 c47f9f8..161350b 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. *
* @@ -953,7 +953,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( @@ -1002,7 +1005,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 66e8db2..5c4bf58 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 @@ -28,7 +28,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; @@ -49,9 +48,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 653d041..e625f97 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 @@ -36,7 +36,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 4be1b7c..d408f9a 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 @@ -43,7 +43,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/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 a9b3a5c..a8c03cc 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 @@ -66,9 +66,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 d54deac..ff84c65 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 @@ -73,9 +73,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/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/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 7cde181..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,106 +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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" + - "gle.cloud.run.v2.Condition.InternalReaso" + - "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" + - "gle.cloud.run.v2.Condition.DomainMapping" + - "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" + - "le.cloud.run.v2.Condition.RevisionReason" + - "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" + - "oud.run.v2.Condition.ExecutionReasonH\000\"\177" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" + - "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" + - "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" + - "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + - "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" + - "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" + - "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" + - "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" + - "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" + - "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" + - "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" + - "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" + - "CK_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\025W" + - "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" + - "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" + - "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" + - "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" + - "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" + - "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" + - "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" + - "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" + - "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" + - "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" + - "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" + - "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" + - "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" + - "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" + - "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" + - "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" + - "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" + - "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" + - "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" + - "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" + - "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" + - "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" + - "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" + - "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" + - "easonsBc\n\027com.google.cloud.run.v2B\016Condi" + - "tionProtoP\001Z6google.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.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", "InternalReason", "DomainMappingReason", "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 55b8a68..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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" + - "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" + - "g.org/genproto/googleapis/cloud/run/v2;r" + - "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" + - "\022Sprojects/{project}/locations/{location" + - "}/keyRings/{key_ring}/cryptoKeys/{crypto" + - "_key}\352AJ\n#secretmanager.googleapis.com/S" + - "ecret\022#projects/{project}/secrets/{secre" + - "t}\352Ad\n*secretmanager.googleapis.com/Secr" + - "etVersion\0226projects/{project}/secrets/{s" + - "ecret}/versions/{version}\352Ad\n\"vpcaccess." + - "googleapis.com/Connector\022>projects/{proj" + - "ect}/locations/{location}/connectors/{co" + - "nnector}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[] { "Connections", }); - 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 c4c0ccb..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,219 +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#google/cloud/run/v2/condition.proto" + - "\032!google/cloud/run/v2/k8s.min.proto\032)goo" + - "gle/cloud/run/v2/vendor_settings.proto\032#" + - "google/longrunning/operations.proto\032\036goo" + - "gle/protobuf/duration.proto\032\037google/prot" + - "obuf/timestamp.proto\"G\n\022GetRevisionReque" + - "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" + - "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + - "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" + - "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" + - "oogle.cloud.run.v2.Revision\022\027\n\017next_page" + - "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" + - "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" + - "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" + - "\003 \001(\t\"\314\n\n\010Revision\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.R" + - "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" + - "2..google.cloud.run.v2.Revision.Annotati" + - "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "delete_time\030\010 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" + - "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" + - "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" + - "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" + - ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" + - "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" + - "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" + - "\031.google.protobuf.Duration\022\027\n\017service_ac" + - "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" + - ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" + - "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" + - "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" + - "(\0162).google.cloud.run.v2.ExecutionEnviro" + - "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" + - "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" + - "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" + - "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + - "rved_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\340A\003\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" + - "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" + - "\022Oprojects/{project}/locations/{location" + - "}/services/{service}/revisions/{revision" + - "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" + - "gle.cloud.run.v2.GetRevisionRequest\032\035.go" + - "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" + - "{name=projects/*/locations/*/services/*/" + - "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." + - "google.cloud.run.v2.ListRevisionsRequest" + - "\032*.google.cloud.run.v2.ListRevisionsResp" + - "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" + - "ations/*/services/*}/revisions\332A\006parent\022" + - "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" + - ".DeleteRevisionRequest\032\035.google.longrunn" + - "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" + - "s/*/locations/*/services/*/revisions/*}\332" + - "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformBb\n\027com.google.clou" + - "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "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.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.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 79d13a5..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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" + - "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" + - "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" + - "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" + - ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" + - "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" + - "_environment\030\r \001(\0162).google.cloud.run.v2" + - ".ExecutionEnvironment\022>\n\016encryption_key\030" + - "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + - "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\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\001Bj\n\027com.google.c" + - "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" + - "ogle.golang.org/genproto/googleapis/clou" + - "d/run/v2;runb\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", "ContainerConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "Confidential", "ExecutionEnvironment", "EncryptionKey", }); - 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 6d74b92..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,281 +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#google/cloud/run/v2/condition.proto\032" + - "+google/cloud/run/v2/revision_template.p" + - "roto\032(google/cloud/run/v2/traffic_target" + - ".proto\032)google/cloud/run/v2/vendor_setti" + - "ngs.proto\032\036google/iam/v1/iam_policy.prot" + - "o\032\032google/iam/v1/policy.proto\032#google/lo" + - "ngrunning/operations.proto\032 google/proto" + - "buf/field_mask.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" + - "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" + - "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" + - "ud.run.v2.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\"\251\001\n\024Updat" + - "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" + - "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + - "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" + - "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" + - "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" + - "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" + - ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" + - "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + - "\032run.googleapis.com/Service\"m\n\024DeleteSer" + - "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" + - "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" + - "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" + - "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" + - "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "expire_time\030\n \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" + - "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" + - "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." + - "google.cloud.run.v2.IngressTraffic\022-\n\014la" + - "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" + - "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" + - ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" + - "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" + - "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" + - "e.cloud.run.v2.TrafficTarget\022 \n\023observed" + - "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + - "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + - "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + - "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + - "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + - "com/Revision\022D\n\027latest_created_revision\030" + - "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + - "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + - "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + - "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" + - "A[\n\032run.googleapis.com/Service\022:projects" + - "/{project}/locations/{location}/services" + - "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" + - "vice\022).google.cloud.run.v2.CreateService" + - "Request\032\035.google.longrunning.Operation\"n" + - "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" + - "/*}/services:\007service\332A\031parent,service,s" + - "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" + - "rvice\022&.google.cloud.run.v2.GetServiceRe" + - "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" + - "\223\002.\022,/v2/{name=projects/*/locations/*/se" + - "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" + - "le.cloud.run.v2.ListServicesRequest\032).go" + - "ogle.cloud.run.v2.ListServicesResponse\"=" + - "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" + - "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" + - ").google.cloud.run.v2.UpdateServiceReque" + - "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + - "?24/v2/{service.name=projects/*/location" + - "s/*/services/*}:\007service\332A\023service,updat" + - "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" + - "rvice\022).google.cloud.run.v2.DeleteServic" + - "eRequest\032\035.google.longrunning.Operation\"" + - "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" + - "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" + - "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + - "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" + - "\323\344\223\002?\022=/v2/{resource=projects/*/location" + - "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" + - "olicy\022\".google.iam.v1.SetIamPolicyReques" + - "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" + - "esource=projects/*/locations/*/services/" + - "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" + - "s\022(.google.iam.v1.TestIamPermissionsRequ" + - "est\032).google.iam.v1.TestIamPermissionsRe" + - "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" + - "/locations/*/services/*}:testIamPermissi" + - "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformBa" + - "\n\027com.google.cloud.run.v2B\014ServiceProtoP" + - "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 a3091cf..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,97 +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*\200\001\n" + - "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" + - "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" + - "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" + - "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" + - "orSettingsProtoP\001Z6google.golang.org/gen" + - "proto/googleapis/cloud/run/v2;runb\006proto" + - "3" - }; - 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 72% 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 b557dfc..5836ff5 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,57 +70,64 @@ private BinaryAuthorization( case 0: done = true; break; - case 8: { - binauthzMethodCase_ = 1; - binauthzMethod_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + binauthzMethodCase_ = 1; + binauthzMethod_ = input.readBool(); + 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) { throw e.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; } @@ -119,30 +143,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 @@ -150,12 +179,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 @@ -169,6 +201,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.
@@ -177,6 +211,7 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ @java.lang.Override @@ -185,14 +220,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.
@@ -201,16 +237,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 { @@ -219,6 +254,7 @@ public java.lang.String getBreakglassJustification() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,11 +266,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_); @@ -249,9 +283,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_); @@ -264,20 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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: @@ -298,8 +331,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: @@ -309,118 +341,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() @@ -428,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +489,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 @@ -470,7 +510,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_; } @@ -484,38 +525,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; @@ -529,13 +571,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(); @@ -565,12 +609,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() { @@ -580,26 +624,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() { @@ -609,12 +658,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. */ @@ -625,12 +677,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() { @@ -644,6 +699,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.
@@ -652,13 +709,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; @@ -667,6 +724,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.
@@ -675,15 +734,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 { @@ -691,6 +749,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.
@@ -699,20 +759,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.
@@ -721,15 +783,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.
@@ -738,23 +803,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); } @@ -764,12 +829,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(); } @@ -778,16 +843,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; @@ -802,6 +867,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 6eabba6..581738a 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() { connections_ = 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,29 +71,29 @@ private CloudSqlInstance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connections_.add(s); + break; } - connections_.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) { throw e.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)) { connections_ = connections_.getUnmodifiableView(); @@ -85,22 +102,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 CONNECTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList connections_; /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -110,13 +132,15 @@ private CloudSqlInstance(
    * 
* * repeated string connections = 1; + * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList - getConnectionsList() { + public com.google.protobuf.ProtocolStringList getConnectionsList() { return connections_; } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -126,12 +150,15 @@ private CloudSqlInstance(
    * 
* * repeated string connections = 1; + * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -141,6 +168,7 @@ public int getConnectionsCount() {
    * 
* * repeated string connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -148,6 +176,8 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -157,15 +187,16 @@ public java.lang.String getConnections(int index) {
    * 
* * repeated string connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString - getConnectionsBytes(int index) { + public com.google.protobuf.ByteString getConnectionsBytes(int index) { return connections_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +208,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 < connections_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connections_.getRaw(i)); } @@ -207,15 +237,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 (!getConnectionsList() - .equals(other.getConnectionsList())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,118 +265,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() @@ -355,16 +393,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(); @@ -374,9 +411,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 @@ -395,7 +432,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)) { connections_ = connections_.getUnmodifiableView(); @@ -410,38 +448,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; @@ -488,16 +527,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList connections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList connections_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connections_ = new com.google.protobuf.LazyStringArrayList(connections_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -507,13 +551,15 @@ private void ensureConnectionsIsMutable() {
      * 
* * repeated string connections = 1; + * * @return A list containing the connections. */ - public com.google.protobuf.ProtocolStringList - getConnectionsList() { + public com.google.protobuf.ProtocolStringList getConnectionsList() { return connections_.getUnmodifiableView(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -523,12 +569,15 @@ private void ensureConnectionsIsMutable() {
      * 
* * repeated string connections = 1; + * * @return The count of connections. */ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -538,6 +587,7 @@ public int getConnectionsCount() {
      * 
* * repeated string connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ @@ -545,6 +595,8 @@ public java.lang.String getConnections(int index) { return connections_.get(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -554,14 +606,16 @@ public java.lang.String getConnections(int index) {
      * 
* * repeated string connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - public com.google.protobuf.ByteString - getConnectionsBytes(int index) { + public com.google.protobuf.ByteString getConnectionsBytes(int index) { return connections_.getByteString(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -571,21 +625,23 @@ public java.lang.String getConnections(int index) {
      * 
* * repeated string connections = 1; + * * @param index The index to set the value at. * @param value The connections to set. * @return This builder for chaining. */ - public Builder setConnections( - int index, java.lang.String value) { + public Builder setConnections(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.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
@@ -595,20 +651,22 @@ public Builder setConnections(
      * 
* * repeated string connections = 1; + * * @param value The connections to add. * @return This builder for chaining. */ - public Builder addConnections( - java.lang.String value) { + public Builder addConnections(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); connections_.add(value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -618,18 +676,19 @@ public Builder addConnections(
      * 
* * repeated string connections = 1; + * * @param values The connections to add. * @return This builder for chaining. */ - public Builder addAllConnections( - java.lang.Iterable values) { + public Builder addAllConnections(java.lang.Iterable values) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -639,6 +698,7 @@ public Builder addAllConnections(
      * 
* * repeated string connections = 1; + * * @return This builder for chaining. */ public Builder clearConnections() { @@ -648,6 +708,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -657,23 +719,23 @@ public Builder clearConnections() {
      * 
* * repeated string connections = 1; + * * @param value The bytes of the connections to add. * @return This builder for chaining. */ - public Builder addConnectionsBytes( - com.google.protobuf.ByteString value) { + public Builder addConnectionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureConnectionsIsMutable(); connections_.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); } @@ -683,12 +745,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(); } @@ -697,16 +759,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; @@ -721,6 +783,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 cb06079..262b0b0 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 connections = 1; + * * @return A list containing the connections. */ - java.util.List - getConnectionsList(); + java.util.List getConnectionsList(); /** + * + * *
    * 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 connections = 1; + * * @return The count of connections. */ int getConnectionsCount(); /** + * + * *
    * 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 connections = 1; + * * @param index The index of the element to return. * @return The connections at the given index. */ java.lang.String getConnections(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 connections = 1; + * * @param index The index of the value to return. * @return The bytes of the connections at the given index. */ - com.google.protobuf.ByteString - getConnectionsBytes(int index); + com.google.protobuf.ByteString getConnectionsBytes(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 77% 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 790c5fe..db439ec 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,115 +73,131 @@ 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 56: { - int rawValue = input.readEnum(); - reasonsCase_ = 7; - reasons_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); - reasonsCase_ = 8; - 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 56: + { + int rawValue = input.readEnum(); + reasonsCase_ = 7; + reasons_ = rawValue; + break; + } + case 64: + { + int rawValue = input.readEnum(); + reasonsCase_ = 8; + 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) { throw e.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.
      * 
@@ -173,6 +206,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -181,6 +216,8 @@ public enum State */ CONDITION_PENDING(1), /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -189,6 +226,8 @@ public enum State */ CONDITION_RECONCILING(2), /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -197,6 +236,8 @@ public enum State */ CONDITION_FAILED(3), /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -208,6 +249,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -216,6 +259,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -224,6 +269,8 @@ public enum State */ public static final int CONDITION_PENDING_VALUE = 1; /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -232,6 +279,8 @@ public enum State */ public static final int CONDITION_RECONCILING_VALUE = 2; /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -240,6 +289,8 @@ public enum State */ public static final int CONDITION_FAILED_VALUE = 3; /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -248,7 +299,6 @@ public enum State */ public static final int CONDITION_SUCCEEDED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -273,51 +323,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; + 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() { + 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; @@ -335,15 +387,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
      * 
@@ -352,6 +407,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Error severity.
      * 
@@ -360,6 +417,8 @@ public enum Severity */ ERROR(1), /** + * + * *
      * Warning severity.
      * 
@@ -368,6 +427,8 @@ public enum Severity */ WARNING(2), /** + * + * *
      * Info severity.
      * 
@@ -379,6 +440,8 @@ public enum Severity ; /** + * + * *
      * Unspecified severity
      * 
@@ -387,6 +450,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Error severity.
      * 
@@ -395,6 +460,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
      * Warning severity.
      * 
@@ -403,6 +470,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
      * Info severity.
      * 
@@ -411,7 +480,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,50 +504,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; @@ -497,15 +566,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.
      * 
@@ -514,6 +586,8 @@ public enum CommonReason */ COMMON_REASON_UNDEFINED(0), /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -522,6 +596,8 @@ public enum CommonReason */ UNKNOWN(1), /** + * + * *
      * The internal route is missing.
      * 
@@ -530,6 +606,8 @@ public enum CommonReason */ ROUTE_MISSING(2), /** + * + * *
      * Revision creation process failed.
      * 
@@ -538,6 +616,8 @@ public enum CommonReason */ REVISION_FAILED(3), /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -546,6 +626,8 @@ public enum CommonReason */ PROGRESS_DEADLINE_EXCEEDED(4), /** + * + * *
      * There was a build error.
      * 
@@ -554,6 +636,8 @@ public enum CommonReason */ BUILD_STEP_FAILED(5), /** + * + * *
      * The container image path is incorrect.
      * 
@@ -562,6 +646,8 @@ public enum CommonReason */ CONTAINER_MISSING(6), /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -570,6 +656,8 @@ public enum CommonReason */ CONTAINER_PERMISSION_DENIED(7), /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -578,6 +666,8 @@ public enum CommonReason */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -586,6 +676,8 @@ public enum CommonReason */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -594,6 +686,8 @@ public enum CommonReason */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -602,6 +696,8 @@ public enum CommonReason */ ENCRYPTION_KEY_CHECK_FAILED(11), /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -610,6 +706,8 @@ public enum CommonReason */ SECRETS_ACCESS_CHECK_FAILED(12), /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -618,6 +716,8 @@ public enum CommonReason */ WAITING_FOR_OPERATION(13), /** + * + * *
      * System will retry immediately.
      * 
@@ -626,6 +726,8 @@ public enum CommonReason */ IMMEDIATE_RETRY(14), /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -637,6 +739,8 @@ public enum CommonReason ; /** + * + * *
      * Default value.
      * 
@@ -645,6 +749,8 @@ public enum CommonReason */ public static final int COMMON_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -653,6 +759,8 @@ public enum CommonReason */ public static final int UNKNOWN_VALUE = 1; /** + * + * *
      * The internal route is missing.
      * 
@@ -661,6 +769,8 @@ public enum CommonReason */ public static final int ROUTE_MISSING_VALUE = 2; /** + * + * *
      * Revision creation process failed.
      * 
@@ -669,6 +779,8 @@ public enum CommonReason */ public static final int REVISION_FAILED_VALUE = 3; /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -677,6 +789,8 @@ public enum CommonReason */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** + * + * *
      * There was a build error.
      * 
@@ -685,6 +799,8 @@ public enum CommonReason */ public static final int BUILD_STEP_FAILED_VALUE = 5; /** + * + * *
      * The container image path is incorrect.
      * 
@@ -693,6 +809,8 @@ public enum CommonReason */ public static final int CONTAINER_MISSING_VALUE = 6; /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -701,6 +819,8 @@ public enum CommonReason */ public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7; /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -709,6 +829,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -717,6 +839,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9; /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -725,6 +849,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10; /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -733,6 +859,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11; /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -741,6 +869,8 @@ public enum CommonReason */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -749,6 +879,8 @@ public enum CommonReason */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** + * + * *
      * System will retry immediately.
      * 
@@ -757,6 +889,8 @@ public enum CommonReason */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -765,7 +899,6 @@ public enum CommonReason */ public static final int POSTPONED_RETRY_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -790,62 +923,75 @@ 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 2: return ROUTE_MISSING; - case 3: return REVISION_FAILED; - case 4: return PROGRESS_DEADLINE_EXCEEDED; - case 5: return BUILD_STEP_FAILED; - 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; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return COMMON_REASON_UNDEFINED; + case 1: + return UNKNOWN; + case 2: + return ROUTE_MISSING; + case 3: + return REVISION_FAILED; + case 4: + return PROGRESS_DEADLINE_EXCEEDED; + case 5: + return BUILD_STEP_FAILED; + 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; + 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; @@ -863,6 +1009,8 @@ private CommonReason(int value) { } /** + * + * *
    * Reasons applicable to internal resources not exposed to users. These will
    * surface in Service.conditions, and could be useful for further diagnosis.
@@ -870,9 +1018,10 @@ private CommonReason(int value) {
    *
    * Protobuf enum {@code google.cloud.run.v2.Condition.InternalReason}
    */
-  public enum InternalReason
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InternalReason implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -881,6 +1030,8 @@ public enum InternalReason */ INTERNAL_REASON_UNDEFINED(0), /** + * + * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -889,6 +1040,8 @@ public enum InternalReason */ CONFLICTING_REVISION_NAME(1), /** + * + * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -897,6 +1050,8 @@ public enum InternalReason */ REVISION_MISSING(2), /** + * + * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -905,6 +1060,8 @@ public enum InternalReason */ CONFIGURATION_MISSING(3), /** + * + * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -913,6 +1070,8 @@ public enum InternalReason */ ASSIGNING_TRAFFIC(4), /** + * + * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -921,6 +1080,8 @@ public enum InternalReason */ UPDATING_INGRESS_TRAFFIC_ALLOWED(5), /** + * + * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -929,6 +1090,8 @@ public enum InternalReason */ REVISION_ORG_POLICY_VIOLATION(6), /** + * + * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -940,6 +1103,8 @@ public enum InternalReason ; /** + * + * *
      * Default value.
      * 
@@ -948,6 +1113,8 @@ public enum InternalReason */ public static final int INTERNAL_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * The revision name provided conflicts with an existing one.
      * 
@@ -956,6 +1123,8 @@ public enum InternalReason */ public static final int CONFLICTING_REVISION_NAME_VALUE = 1; /** + * + * *
      * Revision is missing; this is usually a transient reason.
      * 
@@ -964,6 +1133,8 @@ public enum InternalReason */ public static final int REVISION_MISSING_VALUE = 2; /** + * + * *
      * Internal configuration is missing; this is usually a transient reason.
      * 
@@ -972,6 +1143,8 @@ public enum InternalReason */ public static final int CONFIGURATION_MISSING_VALUE = 3; /** + * + * *
      * Assigning traffic; this is a transient reason.
      * 
@@ -980,6 +1153,8 @@ public enum InternalReason */ public static final int ASSIGNING_TRAFFIC_VALUE = 4; /** + * + * *
      * Updating ingress traffic settings; this is a transient reason.
      * 
@@ -988,6 +1163,8 @@ public enum InternalReason */ public static final int UPDATING_INGRESS_TRAFFIC_ALLOWED_VALUE = 5; /** + * + * *
      * The revision can't be created because it violates an org policy setting.
      * 
@@ -996,6 +1173,8 @@ public enum InternalReason */ public static final int REVISION_ORG_POLICY_VIOLATION_VALUE = 6; /** + * + * *
      * Enabling GCFv2 URI support; this is a transient reason.
      * 
@@ -1004,7 +1183,6 @@ public enum InternalReason */ public static final int ENABLING_GCFV2_URI_SUPPORT_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1029,54 +1207,59 @@ public static InternalReason valueOf(int value) { */ public static InternalReason forNumber(int value) { switch (value) { - case 0: return INTERNAL_REASON_UNDEFINED; - case 1: return CONFLICTING_REVISION_NAME; - case 2: return REVISION_MISSING; - case 3: return CONFIGURATION_MISSING; - case 4: return ASSIGNING_TRAFFIC; - case 5: return UPDATING_INGRESS_TRAFFIC_ALLOWED; - case 6: return REVISION_ORG_POLICY_VIOLATION; - case 7: return ENABLING_GCFV2_URI_SUPPORT; - default: return null; + case 0: + return INTERNAL_REASON_UNDEFINED; + case 1: + return CONFLICTING_REVISION_NAME; + case 2: + return REVISION_MISSING; + case 3: + return CONFIGURATION_MISSING; + case 4: + return ASSIGNING_TRAFFIC; + case 5: + return UPDATING_INGRESS_TRAFFIC_ALLOWED; + case 6: + return REVISION_ORG_POLICY_VIOLATION; + case 7: + return ENABLING_GCFV2_URI_SUPPORT; + 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< - InternalReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InternalReason findValueByNumber(int number) { - return InternalReason.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 InternalReason findValueByNumber(int number) { + return InternalReason.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 InternalReason[] VALUES = values(); - public static InternalReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static InternalReason 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; @@ -1094,15 +1277,18 @@ private InternalReason(int value) { } /** + * + * *
    * Reasons specific to DomainMapping resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.DomainMappingReason} */ - public enum DomainMappingReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum DomainMappingReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -1111,6 +1297,8 @@ public enum DomainMappingReason */ DOMAIN_MAPPING_REASON_UNDEFINED(0), /** + * + * *
      * Internal route is not yet ready.
      * 
@@ -1119,6 +1307,8 @@ public enum DomainMappingReason */ ROUTE_NOT_READY(1), /** + * + * *
      * Insufficient permissions.
      * 
@@ -1127,6 +1317,8 @@ public enum DomainMappingReason */ PERMISSION_DENIED(2), /** + * + * *
      * Certificate already exists.
      * 
@@ -1135,6 +1327,8 @@ public enum DomainMappingReason */ CERTIFICATE_ALREADY_EXISTS(3), /** + * + * *
      * Mapping already exists.
      * 
@@ -1143,6 +1337,8 @@ public enum DomainMappingReason */ MAPPING_ALREADY_EXISTS(4), /** + * + * *
      * Certificate issuance pending.
      * 
@@ -1151,6 +1347,8 @@ public enum DomainMappingReason */ CERTIFICATE_PENDING(5), /** + * + * *
      * Certificate issuance failed.
      * 
@@ -1162,6 +1360,8 @@ public enum DomainMappingReason ; /** + * + * *
      * Default value.
      * 
@@ -1170,6 +1370,8 @@ public enum DomainMappingReason */ public static final int DOMAIN_MAPPING_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal route is not yet ready.
      * 
@@ -1178,6 +1380,8 @@ public enum DomainMappingReason */ public static final int ROUTE_NOT_READY_VALUE = 1; /** + * + * *
      * Insufficient permissions.
      * 
@@ -1186,6 +1390,8 @@ public enum DomainMappingReason */ public static final int PERMISSION_DENIED_VALUE = 2; /** + * + * *
      * Certificate already exists.
      * 
@@ -1194,6 +1400,8 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_ALREADY_EXISTS_VALUE = 3; /** + * + * *
      * Mapping already exists.
      * 
@@ -1202,6 +1410,8 @@ public enum DomainMappingReason */ public static final int MAPPING_ALREADY_EXISTS_VALUE = 4; /** + * + * *
      * Certificate issuance pending.
      * 
@@ -1210,6 +1420,8 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_PENDING_VALUE = 5; /** + * + * *
      * Certificate issuance failed.
      * 
@@ -1218,7 +1430,6 @@ public enum DomainMappingReason */ public static final int CERTIFICATE_FAILED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1243,14 +1454,22 @@ public static DomainMappingReason valueOf(int value) { */ public static DomainMappingReason forNumber(int value) { switch (value) { - case 0: return DOMAIN_MAPPING_REASON_UNDEFINED; - case 1: return ROUTE_NOT_READY; - case 2: return PERMISSION_DENIED; - case 3: return CERTIFICATE_ALREADY_EXISTS; - case 4: return MAPPING_ALREADY_EXISTS; - case 5: return CERTIFICATE_PENDING; - case 6: return CERTIFICATE_FAILED; - default: return null; + case 0: + return DOMAIN_MAPPING_REASON_UNDEFINED; + case 1: + return ROUTE_NOT_READY; + case 2: + return PERMISSION_DENIED; + case 3: + return CERTIFICATE_ALREADY_EXISTS; + case 4: + return MAPPING_ALREADY_EXISTS; + case 5: + return CERTIFICATE_PENDING; + case 6: + return CERTIFICATE_FAILED; + default: + return null; } } @@ -1258,28 +1477,28 @@ public static DomainMappingReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DomainMappingReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DomainMappingReason findValueByNumber(int number) { - return DomainMappingReason.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 DomainMappingReason findValueByNumber(int number) { + return DomainMappingReason.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); } @@ -1288,8 +1507,7 @@ public DomainMappingReason findValueByNumber(int number) { public static DomainMappingReason 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; @@ -1307,15 +1525,18 @@ private DomainMappingReason(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.
      * 
@@ -1324,6 +1545,8 @@ public enum RevisionReason */ REVISION_REASON_UNDEFINED(0), /** + * + * *
      * Revision in Pending state.
      * 
@@ -1332,6 +1555,8 @@ public enum RevisionReason */ PENDING(1), /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -1340,6 +1565,8 @@ public enum RevisionReason */ RESERVE(2), /** + * + * *
      * Revision is Retired.
      * 
@@ -1348,6 +1575,8 @@ public enum RevisionReason */ RETIRED(3), /** + * + * *
      * Revision is being retired.
      * 
@@ -1356,6 +1585,8 @@ public enum RevisionReason */ RETIRING(4), /** + * + * *
      * Revision is being recreated.
      * 
@@ -1364,6 +1595,8 @@ public enum RevisionReason */ RECREATING(5), /** + * + * *
      * There was a health check error.
      * 
@@ -1372,6 +1605,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.
@@ -1381,6 +1616,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
@@ -1391,6 +1628,8 @@ public enum RevisionReason
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1399,6 +1638,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
@@ -1409,6 +1650,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
@@ -1421,6 +1664,8 @@ public enum RevisionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -1429,6 +1674,8 @@ public enum RevisionReason */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Revision in Pending state.
      * 
@@ -1437,6 +1684,8 @@ public enum RevisionReason */ public static final int PENDING_VALUE = 1; /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -1445,6 +1694,8 @@ public enum RevisionReason */ public static final int RESERVE_VALUE = 2; /** + * + * *
      * Revision is Retired.
      * 
@@ -1453,6 +1704,8 @@ public enum RevisionReason */ public static final int RETIRED_VALUE = 3; /** + * + * *
      * Revision is being retired.
      * 
@@ -1461,6 +1714,8 @@ public enum RevisionReason */ public static final int RETIRING_VALUE = 4; /** + * + * *
      * Revision is being recreated.
      * 
@@ -1469,6 +1724,8 @@ public enum RevisionReason */ public static final int RECREATING_VALUE = 5; /** + * + * *
      * There was a health check error.
      * 
@@ -1477,6 +1734,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.
@@ -1486,6 +1745,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
@@ -1496,6 +1757,8 @@ public enum RevisionReason
      */
     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -1504,6 +1767,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
@@ -1514,6 +1779,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
@@ -1523,7 +1790,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(
@@ -1548,58 +1814,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(5);
     }
 
     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;
@@ -1617,15 +1892,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.
      * 
@@ -1634,6 +1912,8 @@ public enum ExecutionReason */ EXECUTION_REASON_UNDEFINED(0), /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1642,6 +1922,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.
@@ -1654,6 +1936,8 @@ public enum ExecutionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -1662,6 +1946,8 @@ public enum ExecutionReason */ public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1670,6 +1956,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.
@@ -1679,7 +1967,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(
@@ -1704,39 +1991,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(6);
     }
 
@@ -1745,8 +2035,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;
@@ -1765,8 +2054,10 @@ 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),
     INTERNAL_REASON(7),
@@ -1775,6 +2066,7 @@ public enum ReasonsCase
     EXECUTION_REASON(11),
     REASONS_NOT_SET(0);
     private final int value;
+
     private ReasonsCase(int value) {
       this.value = value;
     }
@@ -1790,29 +2082,37 @@ public static ReasonsCase valueOf(int value) {
 
     public static ReasonsCase forNumber(int value) {
       switch (value) {
-        case 6: return REASON;
-        case 7: return INTERNAL_REASON;
-        case 8: return DOMAIN_MAPPING_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 7:
+          return INTERNAL_REASON;
+        case 8:
+          return DOMAIN_MAPPING_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:
@@ -1822,6 +2122,7 @@ public int getNumber() {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -1830,14 +2131,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:
@@ -1847,16 +2149,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 { @@ -1867,38 +2168,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 @@ -1907,29 +2220,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 { @@ -1940,11 +2253,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 @@ -1952,18 +2268,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.
    * 
@@ -1978,48 +2301,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() { @@ -2029,18 +2367,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; @@ -2048,22 +2389,28 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int INTERNAL_REASON_FIELD_NUMBER = 7; /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ public int getInternalReasonValue() { @@ -2073,41 +2420,52 @@ public int getInternalReasonValue() { return 0; } /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.InternalReason result = + com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } public static final int DOMAIN_MAPPING_REASON_FIELD_NUMBER = 8; /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ public int getDomainMappingReasonValue() { @@ -2117,41 +2475,53 @@ public int getDomainMappingReasonValue() { return 0; } /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = + com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } 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() { @@ -2161,41 +2531,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() { @@ -2205,24 +2586,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; @@ -2234,8 +2621,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_); } @@ -2279,39 +2665,36 @@ 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_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(7, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(8, ((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; @@ -2321,45 +2704,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 7: - if (getInternalReasonValue() - != other.getInternalReasonValue()) return false; + if (getInternalReasonValue() != other.getInternalReasonValue()) return false; break; case 8: - if (getDomainMappingReasonValue() - != other.getDomainMappingReasonValue()) return false; + if (getDomainMappingReasonValue() != other.getDomainMappingReasonValue()) 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: @@ -2416,118 +2791,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() @@ -2535,16 +2918,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(); @@ -2568,9 +2950,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 @@ -2623,38 +3005,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; @@ -2681,29 +3064,35 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: { - setReasonValue(other.getReasonValue()); - break; - } - case INTERNAL_REASON: { - setInternalReasonValue(other.getInternalReasonValue()); - break; - } - case DOMAIN_MAPPING_REASON: { - setDomainMappingReasonValue(other.getDomainMappingReasonValue()); - 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 INTERNAL_REASON: + { + setInternalReasonValue(other.getInternalReasonValue()); + break; + } + case DOMAIN_MAPPING_REASON: + { + setDomainMappingReasonValue(other.getDomainMappingReasonValue()); + 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(); @@ -2733,12 +3122,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() { @@ -2748,9 +3137,10 @@ public Builder clearReasons() { return this; } - private java.lang.Object type_ = ""; /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2760,13 +3150,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; @@ -2775,6 +3165,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2784,15 +3176,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 { @@ -2800,6 +3191,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2809,20 +3202,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:
@@ -2832,15 +3227,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:
@@ -2850,16 +3248,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; @@ -2867,51 +3265,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. */ @@ -2919,21 +3331,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; @@ -2941,18 +3356,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; @@ -2961,20 +3378,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 { @@ -2982,54 +3400,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; @@ -3037,34 +3462,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.
      * 
@@ -3085,14 +3523,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(); @@ -3103,6 +3542,8 @@ public Builder setLastTransitionTime( return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3113,7 +3554,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; } @@ -3125,6 +3568,8 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3143,6 +3588,8 @@ public Builder clearLastTransitionTime() { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -3150,11 +3597,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.
      * 
@@ -3165,11 +3614,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.
      * 
@@ -3177,14 +3629,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_; @@ -3192,51 +3647,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. */ @@ -3244,32 +3713,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 @@ -3277,11 +3752,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 @@ -3292,11 +3770,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. */ @@ -3307,29 +3788,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. */ @@ -3343,11 +3832,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() { @@ -3360,11 +3852,14 @@ public Builder clearReason() { } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ @java.lang.Override @@ -3372,11 +3867,14 @@ public boolean hasInternalReason() { return reasonsCase_ == 7; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ @java.lang.Override @@ -3387,11 +3885,14 @@ public int getInternalReasonValue() { return 0; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @param value The enum numeric value on the wire for internalReason to set. * @return This builder for chaining. */ @@ -3402,29 +3903,37 @@ public Builder setInternalReasonValue(int value) { return this; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.InternalReason getInternalReason() { if (reasonsCase_ == 7) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.InternalReason result = com.google.cloud.run.v2.Condition.InternalReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.InternalReason result = + com.google.cloud.run.v2.Condition.InternalReason.valueOf((java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.InternalReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.InternalReason.INTERNAL_REASON_UNDEFINED; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @param value The internalReason to set. * @return This builder for chaining. */ @@ -3438,11 +3947,14 @@ public Builder setInternalReason(com.google.cloud.run.v2.Condition.InternalReaso return this; } /** + * + * *
      * A reason for the internal condition.
      * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return This builder for chaining. */ public Builder clearInternalReason() { @@ -3455,11 +3967,14 @@ public Builder clearInternalReason() { } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ @java.lang.Override @@ -3467,11 +3982,14 @@ public boolean hasDomainMappingReason() { return reasonsCase_ == 8; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ @java.lang.Override @@ -3482,11 +4000,14 @@ public int getDomainMappingReasonValue() { return 0; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @param value The enum numeric value on the wire for domainMappingReason to set. * @return This builder for chaining. */ @@ -3497,33 +4018,43 @@ public Builder setDomainMappingReasonValue(int value) { return this; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ @java.lang.Override public com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason() { if (reasonsCase_ == 8) { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.Condition.DomainMappingReason result = com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( - (java.lang.Integer) reasons_); - return result == null ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED : result; + com.google.cloud.run.v2.Condition.DomainMappingReason result = + com.google.cloud.run.v2.Condition.DomainMappingReason.valueOf( + (java.lang.Integer) reasons_); + return result == null + ? com.google.cloud.run.v2.Condition.DomainMappingReason.UNRECOGNIZED + : result; } return com.google.cloud.run.v2.Condition.DomainMappingReason.DOMAIN_MAPPING_REASON_UNDEFINED; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @param value The domainMappingReason to set. * @return This builder for chaining. */ - public Builder setDomainMappingReason(com.google.cloud.run.v2.Condition.DomainMappingReason value) { + public Builder setDomainMappingReason( + com.google.cloud.run.v2.Condition.DomainMappingReason value) { if (value == null) { throw new NullPointerException(); } @@ -3533,11 +4064,14 @@ public Builder setDomainMappingReason(com.google.cloud.run.v2.Condition.DomainMa return this; } /** + * + * *
      * A reason for the domain mapping condition.
      * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return This builder for chaining. */ public Builder clearDomainMappingReason() { @@ -3550,11 +4084,14 @@ public Builder clearDomainMappingReason() { } /** + * + * *
      * 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 @@ -3562,11 +4099,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 @@ -3577,11 +4117,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. */ @@ -3592,29 +4135,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. */ @@ -3628,11 +4179,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() { @@ -3645,11 +4199,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 @@ -3657,11 +4214,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 @@ -3672,11 +4232,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. */ @@ -3687,29 +4250,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. */ @@ -3723,11 +4294,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() { @@ -3738,9 +4312,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); } @@ -3750,12 +4324,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(); } @@ -3764,16 +4338,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; @@ -3788,6 +4362,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 86% 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 7c2e922..43ca148 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,160 +142,211 @@ 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 internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return Whether the internalReason field is set. */ boolean hasInternalReason(); /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The enum numeric value on the wire for internalReason. */ int getInternalReasonValue(); /** + * + * *
    * A reason for the internal condition.
    * 
* * .google.cloud.run.v2.Condition.InternalReason internal_reason = 7; + * * @return The internalReason. */ com.google.cloud.run.v2.Condition.InternalReason getInternalReason(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return Whether the domainMappingReason field is set. */ boolean hasDomainMappingReason(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The enum numeric value on the wire for domainMappingReason. */ int getDomainMappingReasonValue(); /** + * + * *
    * A reason for the domain mapping condition.
    * 
* * .google.cloud.run.v2.Condition.DomainMappingReason domain_mapping_reason = 8; + * * @return The domainMappingReason. */ com.google.cloud.run.v2.Condition.DomainMappingReason getDomainMappingReason(); /** + * + * *
    * 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..498ac89 --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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\"\350\020\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\017internal_reason\030\007 \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.InternalReaso" + + "nH\000\022S\n\025domain_mapping_reason\030\010 \001(\01622.goo" + + "gle.cloud.run.v2.Condition.DomainMapping" + + "ReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goog" + + "le.cloud.run.v2.Condition.RevisionReason" + + "H\000\022J\n\020execution_reason\030\013 \001(\0162..google.cl" + + "oud.run.v2.Condition.ExecutionReasonH\000\"\177" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDIT" + + "ION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020\002" + + "\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUCC" + + "EEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + + "IED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"" + + "\316\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEFI" + + "NED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rROUTE_MISSING\020\002\022\023\n" + + "\017REVISION_FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_" + + "EXCEEDED\020\004\022\025\n\021BUILD_STEP_FAILED\020\005\022\025\n\021CON" + + "TAINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION" + + "_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZE" + + "D\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHE" + + "CK_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\025W" + + "AITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETR" + + "Y\020\016\022\023\n\017POSTPONED_RETRY\020\017\"\377\001\n\016InternalRea" + + "son\022\035\n\031INTERNAL_REASON_UNDEFINED\020\000\022\035\n\031CO" + + "NFLICTING_REVISION_NAME\020\001\022\024\n\020REVISION_MI" + + "SSING\020\002\022\031\n\025CONFIGURATION_MISSING\020\003\022\025\n\021AS" + + "SIGNING_TRAFFIC\020\004\022$\n UPDATING_INGRESS_TR" + + "AFFIC_ALLOWED\020\005\022!\n\035REVISION_ORG_POLICY_V" + + "IOLATION\020\006\022\036\n\032ENABLING_GCFV2_URI_SUPPORT" + + "\020\007\"\323\001\n\023DomainMappingReason\022#\n\037DOMAIN_MAP" + + "PING_REASON_UNDEFINED\020\000\022\023\n\017ROUTE_NOT_REA" + + "DY\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\036\n\032CERTIFICA" + + "TE_ALREADY_EXISTS\020\003\022\032\n\026MAPPING_ALREADY_E" + + "XISTS\020\004\022\027\n\023CERTIFICATE_PENDING\020\005\022\026\n\022CERT" + + "IFICATE_FAILED\020\006\"\257\002\n\016RevisionReason\022\035\n\031R" + + "EVISION_REASON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RESERVE\020\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022" + + "\016\n\nRECREATING\020\005\022 \n\034HEALTH_CHECK_CONTAINE" + + "R_ERROR\020\006\022$\n CUSTOMIZED_PATH_RESPONSE_PE" + + "NDING\020\007\022!\n\035MIN_INSTANCES_NOT_PROVISIONED" + + "\020\010\022!\n\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n" + + "\rNO_DEPLOYMENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED" + + "\020\013\"o\n\017ExecutionReason\022\036\n\032EXECUTION_REASO" + + "N_UNDEFINED\020\000\022$\n JOB_STATUS_SERVICE_POLL" + + "ING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CODE\020\002B\t\n\007r" + + "easonsBc\n\027com.google.cloud.run.v2B\016Condi" + + "tionProtoP\001Z6google.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.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", + "InternalReason", + "DomainMappingReason", + "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 657ebf2..fe4d3fd 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,90 +81,101 @@ 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) {
       throw e.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();
@@ -168,27 +196,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 @@ -197,29 +231,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 { @@ -230,12 +264,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 Docker
    * More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ @java.lang.Override @@ -244,30 +281,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 Docker
    * 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 { @@ -278,6 +315,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.
@@ -291,13 +330,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.
@@ -311,12 +352,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.
@@ -330,6 +374,7 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -337,6 +382,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.
@@ -350,17 +397,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.
@@ -374,13 +423,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.
@@ -394,12 +445,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.
@@ -413,6 +467,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -420,6 +475,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.
@@ -433,17 +490,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.
    * 
@@ -455,6 +514,8 @@ public java.util.List getEnvList() { return env_; } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -462,11 +523,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.
    * 
@@ -478,6 +540,8 @@ public int getEnvCount() { return env_.size(); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -489,6 +553,8 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -496,14 +562,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:
@@ -511,6 +578,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 @@ -518,6 +586,8 @@ public boolean hasResources() { return resources_ != null; } /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -525,13 +595,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:
@@ -548,6 +623,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
@@ -563,6 +640,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
@@ -574,11 +653,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
@@ -594,6 +675,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
@@ -609,6 +692,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
@@ -620,14 +705,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.
    * 
@@ -639,6 +725,8 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -646,11 +734,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.
    * 
@@ -662,6 +752,8 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -673,6 +765,8 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -680,12 +774,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; @@ -697,8 +791,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_); } @@ -755,20 +848,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; @@ -778,32 +867,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; } @@ -848,97 +929,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
@@ -949,21 +1036,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()
@@ -971,19 +1060,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();
@@ -1023,9 +1112,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
@@ -1098,38 +1187,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;
@@ -1184,9 +1274,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_);
           }
@@ -1213,9 +1304,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_);
           }
@@ -1239,9 +1331,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_);
           }
@@ -1275,22 +1368,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; @@ -1299,20 +1395,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 { @@ -1320,54 +1417,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; @@ -1375,19 +1479,21 @@ public Builder setNameBytes( private java.lang.Object image_ = ""; /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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; @@ -1396,21 +1502,22 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 { @@ -1418,70 +1525,81 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Docker
      * 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 Docker
      * 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 Docker
      * 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.
@@ -1495,13 +1613,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.
@@ -1515,12 +1635,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.
@@ -1534,6 +1657,7 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1541,6 +1665,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.
@@ -1554,14 +1680,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.
@@ -1575,21 +1703,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.
@@ -1603,20 +1733,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.
@@ -1630,18 +1762,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.
@@ -1655,6 +1788,7 @@ public Builder addAllCommand(
      * 
* * repeated string command = 3; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1664,6 +1798,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.
@@ -1677,29 +1813,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.
@@ -1713,13 +1853,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.
@@ -1733,12 +1875,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.
@@ -1752,6 +1897,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1759,6 +1905,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.
@@ -1772,14 +1920,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.
@@ -1793,21 +1943,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.
@@ -1821,20 +1973,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.
@@ -1848,18 +2002,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.
@@ -1873,6 +2028,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 4; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1882,6 +2038,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -1895,34 +2053,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.
      * 
@@ -1937,6 +2100,8 @@ public java.util.List getEnvList() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1951,6 +2116,8 @@ public int getEnvCount() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -1965,14 +2132,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(); @@ -1986,14 +2154,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()); @@ -2004,6 +2173,8 @@ public Builder setEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2024,14 +2195,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(); @@ -2045,14 +2217,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()); @@ -2063,14 +2236,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()); @@ -2081,18 +2255,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); @@ -2100,6 +2274,8 @@ public Builder addAllEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2117,6 +2293,8 @@ public Builder clearEnv() { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2134,39 +2312,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 { @@ -2174,6 +2356,8 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2181,42 +2365,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_; @@ -2224,8 +2412,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:
@@ -2233,12 +2426,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:
@@ -2246,16 +2442,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:
@@ -2278,6 +2479,8 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2298,6 +2501,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2310,7 +2515,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;
         }
@@ -2322,6 +2529,8 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2342,6 +2551,8 @@ public Builder clearResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2351,11 +2562,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:
@@ -2368,11 +2581,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:
@@ -2382,32 +2598,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
@@ -2426,6 +2651,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
@@ -2444,6 +2671,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
@@ -2462,6 +2691,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
@@ -2472,8 +2703,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();
@@ -2487,6 +2717,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
@@ -2509,6 +2741,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
@@ -2533,6 +2767,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
@@ -2543,8 +2779,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();
@@ -2558,6 +2793,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
@@ -2568,8 +2805,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());
@@ -2580,6 +2816,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
@@ -2602,6 +2840,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
@@ -2616,8 +2856,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);
@@ -2625,6 +2864,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
@@ -2646,6 +2887,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
@@ -2667,6 +2910,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
@@ -2677,11 +2922,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
@@ -2692,14 +2938,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
@@ -2710,8 +2958,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 {
@@ -2719,6 +2967,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
@@ -2730,10 +2980,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
@@ -2744,12 +2996,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
@@ -2760,38 +3013,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.
      * 
@@ -2806,6 +3067,8 @@ public java.util.List getVolumeMountsList() } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2820,6 +3083,8 @@ public int getVolumeMountsCount() { } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2834,14 +3099,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(); @@ -2855,6 +3121,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2873,6 +3141,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2893,14 +3163,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(); @@ -2914,14 +3185,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()); @@ -2932,6 +3204,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2950,6 +3224,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2960,8 +3236,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); @@ -2969,6 +3244,8 @@ public Builder addAllVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -2986,6 +3263,8 @@ public Builder clearVolumeMounts() { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3003,39 +3282,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 { @@ -3043,6 +3327,8 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3050,49 +3336,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); } @@ -3102,12 +3394,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(); } @@ -3116,16 +3408,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; @@ -3140,6 +3432,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 73b7983..d1b3382 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 Docker
    * 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 Docker
    * 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 a894a5c..ec8f386 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,58 +70,64 @@ 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) { throw e.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 @@ -113,30 +136,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 { @@ -147,12 +170,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 @@ -161,6 +187,7 @@ public int getContainerPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +199,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_); } @@ -193,8 +219,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; @@ -204,17 +229,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; } @@ -235,118 +258,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() @@ -354,16 +385,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(); @@ -375,9 +405,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 @@ -396,7 +426,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(); @@ -407,38 +438,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; @@ -485,19 +517,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; @@ -506,21 +540,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 { @@ -528,70 +563,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 @@ -599,39 +644,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); } @@ -641,12 +692,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(); } @@ -655,16 +706,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; @@ -679,6 +730,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 69% 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 beed4d8..88a038b 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,77 +71,88 @@ 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) { throw e.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 @@ -133,30 +161,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 { @@ -167,11 +197,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 @@ -179,11 +213,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 @@ -191,11 +229,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() { @@ -205,12 +246,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 @@ -219,30 +263,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 { @@ -253,12 +297,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 @@ -267,6 +314,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +326,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_); } @@ -305,15 +352,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; @@ -323,24 +368,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; } @@ -361,125 +403,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() @@ -487,16 +537,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(); @@ -516,9 +565,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 @@ -537,7 +586,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_; @@ -554,38 +604,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; @@ -639,19 +690,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; @@ -660,21 +715,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 { @@ -682,57 +740,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; @@ -740,24 +811,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() { @@ -768,11 +850,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) { @@ -788,14 +873,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(); @@ -806,17 +893,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; } @@ -828,11 +918,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) { @@ -846,48 +939,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_; @@ -895,19 +999,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; @@ -916,21 +1022,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 { @@ -938,70 +1045,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 @@ -1009,39 +1126,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); } @@ -1051,12 +1174,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(); } @@ -1065,16 +1188,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; @@ -1089,6 +1212,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 69% 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 4d0b67c..c5b40af 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,65 +73,74 @@ 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) {
       throw e.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 @@ -123,31 +149,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 { @@ -158,12 +186,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 @@ -174,12 +205,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 @@ -188,30 +222,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 { @@ -220,6 +254,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,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_); } @@ -255,8 +289,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_); @@ -269,19 +302,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; } @@ -296,8 +327,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(); @@ -305,97 +335,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
@@ -404,21 +441,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()
@@ -426,16 +465,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +487,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
@@ -470,7 +508,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_;
@@ -482,38 +521,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;
@@ -564,20 +604,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; @@ -586,22 +630,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 { @@ -609,73 +656,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 @@ -683,32 +746,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; @@ -716,19 +785,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; @@ -737,21 +808,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 { @@ -759,64 +831,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); } @@ -826,12 +905,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(); } @@ -840,16 +919,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; @@ -864,6 +943,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 6d82284..779f691 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,64 +71,73 @@ 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) { throw e.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 @@ -120,30 +146,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 { @@ -154,12 +182,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 @@ -170,12 +201,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 @@ -184,30 +218,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 { @@ -216,6 +250,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,8 +285,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_); @@ -265,19 +298,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; } @@ -292,8 +323,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(); @@ -301,118 +331,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() @@ -420,16 +459,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(); @@ -443,9 +481,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 @@ -464,7 +502,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_; @@ -476,38 +515,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; @@ -558,19 +598,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; @@ -579,21 +623,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 { @@ -601,70 +648,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 @@ -672,32 +735,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; @@ -705,19 +774,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; @@ -726,21 +797,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 { @@ -748,64 +820,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); } @@ -815,12 +894,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(); } @@ -829,16 +908,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; @@ -853,6 +932,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 735e5f4..6199ab6 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,73 +70,81 @@ 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) { throw e.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; } @@ -135,32 +160,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 @@ -169,30 +200,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 { @@ -202,6 +233,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
@@ -214,12 +247,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
@@ -232,6 +268,7 @@ public boolean hasValue() {
    * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { @@ -242,8 +279,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; @@ -252,6 +288,8 @@ public java.lang.String getValue() { } } /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -264,18 +302,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; } @@ -287,11 +324,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 @@ -299,21 +339,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.
    * 
@@ -323,12 +368,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; @@ -340,8 +386,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_); } @@ -367,8 +412,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; @@ -378,24 +424,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: @@ -430,116 +473,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); } @@ -549,16 +599,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(); @@ -570,9 +619,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 @@ -612,38 +661,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; @@ -657,19 +707,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(); @@ -699,12 +752,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() { @@ -714,22 +767,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; @@ -738,21 +792,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 { @@ -760,63 +815,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
@@ -829,6 +893,7 @@ public Builder setNameBytes(
      * 
* * string value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -836,6 +901,8 @@ public boolean hasValue() { return valuesCase_ == 2; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -848,6 +915,7 @@ public boolean hasValue() {
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -857,8 +925,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; @@ -869,6 +936,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -881,19 +950,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; } @@ -903,6 +971,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -915,20 +985,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
@@ -941,6 +1013,7 @@ public Builder setValue(
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -952,6 +1025,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -964,15 +1039,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(); @@ -980,13 +1055,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 @@ -994,11 +1075,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 @@ -1016,6 +1100,8 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1036,14 +1122,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(); @@ -1054,6 +1141,8 @@ public Builder setValueSource( return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1062,10 +1151,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; } @@ -1080,6 +1172,8 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1103,6 +1197,8 @@ public Builder clearValueSource() { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1113,6 +1209,8 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1131,6 +1229,8 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1138,26 +1238,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); } @@ -1167,12 +1271,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(); } @@ -1181,16 +1285,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; @@ -1205,6 +1309,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 68% 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 5ed79aa..b92d8be 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,59 +68,67 @@ 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) { throw e.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 @@ -112,18 +136,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.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (secretKeyRef_ != null) { output.writeMessage(1, getSecretKeyRef()); } @@ -162,8 +193,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; @@ -173,7 +203,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); @@ -182,8 +212,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; @@ -205,118 +234,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() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,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 @@ -382,38 +418,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; @@ -456,34 +493,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.
      * 
@@ -504,6 +554,8 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -522,6 +574,8 @@ public Builder setSecretKeyRef( return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -532,7 +586,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; } @@ -544,6 +600,8 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -562,6 +620,8 @@ public Builder clearSecretKeyRef() { return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -569,11 +629,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.
      * 
@@ -584,11 +646,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.
      * 
@@ -596,21 +661,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); } @@ -620,12 +688,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(); } @@ -634,16 +702,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; @@ -658,6 +726,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 07d5c71..b9e959e 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 Google-default environment.
    * 
@@ -29,6 +49,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_DEFAULT(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 Google-default environment.
    * 
@@ -56,6 +82,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_DEFAULT_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_DEFAULT; - case 2: return EXECUTION_ENVIRONMENT_GEN2; - default: return null; + case 0: + return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: + return EXECUTION_ENVIRONMENT_DEFAULT; + 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 65% 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 ef20db6..6608033 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,54 +70,62 @@ 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) { throw e.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 @@ -109,31 +134,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 { @@ -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.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; } @@ -205,118 +232,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() @@ -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.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 @@ -364,7 +399,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; @@ -374,38 +410,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; @@ -449,20 +486,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; @@ -471,22 +512,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 { @@ -494,67 +538,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); } @@ -564,12 +621,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(); } @@ -578,16 +635,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; @@ -602,6 +659,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 167c2f1..354e321 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -203,118 +230,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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -447,19 +484,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; @@ -468,21 +509,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 { @@ -490,64 +534,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); } @@ -557,12 +614,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(); } @@ -571,16 +628,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; @@ -595,6 +652,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..26c60b3 --- /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\023\n\013connections\030\001 \003(\tB\366\003\n\027com.google.c" + + "loud.run.v2B\013K8sMinProtoP\001Z6google.golan" + + "g.org/genproto/googleapis/cloud/run/v2;r" + + "un\352Ax\n!cloudkms.googleapis.com/CryptoKey" + + "\022Sprojects/{project}/locations/{location" + + "}/keyRings/{key_ring}/cryptoKeys/{crypto" + + "_key}\352AJ\n#secretmanager.googleapis.com/S" + + "ecret\022#projects/{project}/secrets/{secre" + + "t}\352Ad\n*secretmanager.googleapis.com/Secr" + + "etVersion\0226projects/{project}/secrets/{s" + + "ecret}/versions/{version}\352Ad\n\"vpcaccess." + + "googleapis.com/Connector\022>projects/{proj" + + "ect}/locations/{location}/connectors/{co" + + "nnector}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[] { + "Connections", + }); + 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 c29bba3..d519f06 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,63 +71,69 @@ 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) { throw e.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.
@@ -118,7 +141,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 @@ -127,14 +153,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.
@@ -142,17 +169,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 { @@ -163,11 +191,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 @@ -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 ListRevisions.
    * 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 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 { @@ -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.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; } @@ -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.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() @@ -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.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 @@ -500,7 +539,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_; @@ -513,38 +553,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; @@ -598,6 +639,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.
@@ -605,14 +648,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; @@ -621,6 +666,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.
@@ -628,16 +675,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 { @@ -645,6 +693,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.
@@ -652,21 +702,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.
@@ -674,16 +728,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.
@@ -691,29 +750,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 @@ -721,30 +785,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; @@ -752,19 +822,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; @@ -773,21 +845,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 { @@ -795,69 +868,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 @@ -865,37 +948,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); } @@ -905,12 +994,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(); } @@ -919,16 +1008,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; @@ -943,6 +1032,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 531901c..7780bb6 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,35 +72,36 @@ 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) { throw e.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_); @@ -92,22 +110,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.
    * 
@@ -119,6 +142,8 @@ public java.util.List getRevisionsList() { return revisions_; } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getRevisionsCount() { return revisions_.size(); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -153,6 +182,8 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -160,20 +191,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 @@ -182,30 +215,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 { @@ -214,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +259,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)); } @@ -243,8 +276,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_); @@ -257,17 +289,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; } @@ -290,118 +321,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() @@ -409,17 +449,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(); @@ -435,9 +475,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 @@ -456,7 +496,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)) { @@ -476,38 +517,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; @@ -534,9 +576,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_); } @@ -574,21 +617,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.
      * 
@@ -603,6 +653,8 @@ public java.util.List getRevisionsList() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -617,6 +669,8 @@ public int getRevisionsCount() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -631,14 +685,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(); @@ -652,6 +707,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -670,6 +727,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -690,14 +749,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(); @@ -711,14 +771,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()); @@ -729,6 +790,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -747,6 +810,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -757,8 +822,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); @@ -766,6 +830,8 @@ public Builder addAllRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -783,6 +849,8 @@ public Builder clearRevisions() { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -800,39 +868,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 { @@ -840,6 +913,8 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -847,42 +922,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_; @@ -890,19 +970,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; @@ -911,21 +993,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 { @@ -933,64 +1016,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); } @@ -1000,12 +1090,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(); } @@ -1014,16 +1104,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; @@ -1038,6 +1128,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 2204fdc..0a02b2c 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,70 +71,79 @@ 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) { throw e.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 @@ -126,31 +152,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 { @@ -161,11 +189,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 @@ -176,12 +207,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 @@ -190,30 +224,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 { @@ -224,11 +258,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 @@ -237,6 +274,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,8 +286,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_); } @@ -275,15 +312,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; @@ -293,21 +328,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; } @@ -326,125 +358,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() @@ -452,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +516,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 @@ -498,7 +537,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_; @@ -511,38 +551,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; @@ -596,20 +637,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; @@ -618,22 +663,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 { @@ -641,72 +689,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 @@ -714,30 +778,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; @@ -745,19 +815,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; @@ -766,21 +838,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 { @@ -788,69 +861,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 @@ -858,37 +941,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); } @@ -898,12 +987,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(); } @@ -912,16 +1001,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; @@ -936,6 +1025,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 69f2b36..cb0f706 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,35 +72,36 @@ 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) { throw e.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_); @@ -92,22 +110,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.
    * 
@@ -119,6 +142,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * The resulting list of Services.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -153,6 +182,8 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -160,20 +191,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 @@ -182,30 +215,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 { @@ -214,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +259,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)); } @@ -243,8 +276,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_); @@ -257,17 +289,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; } @@ -290,118 +321,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() @@ -409,17 +449,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(); @@ -435,9 +475,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 @@ -456,7 +496,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)) { @@ -476,38 +517,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; @@ -534,9 +576,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_); } @@ -574,21 +617,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.
      * 
@@ -603,6 +653,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -617,6 +669,8 @@ public int getServicesCount() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -631,14 +685,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(); @@ -652,14 +707,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()); @@ -670,6 +726,8 @@ public Builder setServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -690,14 +748,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(); @@ -711,14 +770,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()); @@ -729,14 +789,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()); @@ -747,6 +808,8 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -757,8 +820,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); @@ -766,6 +828,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -783,6 +847,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -800,39 +866,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 { @@ -840,6 +911,8 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -847,42 +920,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_; @@ -890,19 +968,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; @@ -911,21 +991,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 { @@ -933,64 +1014,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); } @@ -1000,12 +1088,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(); } @@ -1014,16 +1102,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; @@ -1038,6 +1126,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 65% 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 19ee6ff..d2eea4b 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,87 +69,87 @@ 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) { throw e.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_; } @@ -142,6 +158,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
@@ -152,22 +170,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
-
   @java.lang.Override
-  public boolean containsLimits(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLimits(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -179,11 +197,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
@@ -195,16 +214,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -216,12 +235,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -231,11 +249,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 @@ -244,6 +265,7 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,14 +277,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_); } @@ -275,19 +292,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; @@ -297,17 +313,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; } @@ -324,147 +339,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() @@ -472,16 +493,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 +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_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 @@ -513,7 +533,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(); @@ -526,38 +547,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; @@ -566,8 +588,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()); } @@ -599,24 +620,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(); @@ -628,6 +649,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
@@ -638,22 +661,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
-
     @java.lang.Override
-    public boolean containsLimits(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLimits(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -665,11 +688,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
@@ -681,16 +705,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -702,12 +727,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+    public java.lang.String getLimitsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -715,11 +739,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
@@ -730,23 +755,21 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-
-    public Builder removeLimits(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLimits().getMutableMap()
-          .remove(key);
+    public Builder removeLimits(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -757,16 +780,19 @@ public Builder removeLimits(
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLimits().getMutableMap()
-          .put(key, value);
+    public Builder putLimits(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -777,21 +803,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 @@ -799,37 +825,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); } @@ -839,12 +871,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(); } @@ -853,16 +885,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; @@ -877,6 +909,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 71% 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 0768f83..1400871 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
@@ -62,11 +81,10 @@ boolean containsLimits(
    *
    * map<string, string> limits = 1;
    */
-
-  java.lang.String getLimitsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLimitsOrDefault(java.lang.String key, 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
@@ -77,16 +95,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 9f2fb8c..f3e7bc2 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,243 +84,271 @@ 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();
+              launchStage_ = rawValue;
+              break;
             }
-            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();
-
-            launchStage_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+          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 112:
+            {
+              containerConcurrency_ = input.readInt32();
+              break;
             }
+          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 112: {
-
-            containerConcurrency_ = input.readInt32();
-            break;
-          }
-          case 122: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          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 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;
+          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;
             }
-            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 152:
+            {
+              confidential_ = input.readBool();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 152: {
-
-            confidential_ = input.readBool();
-            break;
-          }
-          case 160: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 170: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 160:
+            {
+              int rawValue = input.readEnum();
 
-            encryptionKey_ = s;
-            break;
-          }
-          case 240: {
-
-            reconciling_ = input.readBool();
-            break;
-          }
-          case 250: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              conditions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+              executionEnvironment_ = rawValue;
+              break;
             }
-            conditions_.add(
-                input.readMessage(com.google.cloud.run.v2.Condition.parser(), extensionRegistry));
-            break;
-          }
-          case 256: {
+          case 170:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            observedGeneration_ = input.readInt64();
-            break;
-          }
-          case 266: {
-            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;
+            }
+          case 256:
+            {
+              observedGeneration_ = input.readInt64();
+              break;
+            }
+          case 266:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            logUri_ = s;
-            break;
-          }
-          case 794: {
-            java.lang.String s = input.readStringRequireUtf8();
+              logUri_ = s;
+              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) {
       throw e.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_);
@@ -318,29 +363,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);
   }
@@ -348,11 +394,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 @@ -361,29 +410,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 { @@ -394,12 +443,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 @@ -408,30 +460,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 { @@ -442,12 +494,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 @@ -456,24 +511,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_; } @@ -482,6 +536,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
@@ -496,22 +552,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -527,11 +583,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
@@ -547,16 +604,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -572,12 +629,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -585,24 +641,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_;
   }
@@ -611,28 +667,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -640,11 +698,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.
    * 
@@ -652,16 +711,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -669,12 +729,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -684,11 +743,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 @@ -696,11 +759,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 @@ -708,11 +775,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() { @@ -722,11 +792,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 @@ -734,11 +808,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 @@ -746,11 +824,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() { @@ -760,12 +841,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 @@ -773,12 +858,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 @@ -786,12 +875,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() { @@ -801,13 +893,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 @@ -815,13 +911,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 @@ -829,13 +929,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() { @@ -845,6 +948,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
@@ -853,12 +958,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
@@ -867,9 +976,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; @@ -878,11 +989,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 @@ -891,29 +1007,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 { @@ -924,11 +1042,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 @@ -936,18 +1057,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.
    * 
@@ -962,12 +1090,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 @@ -975,12 +1106,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 @@ -988,6 +1122,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.
@@ -1003,11 +1139,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 14;
   private int containerConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 14; + * * @return The containerConcurrency. */ @java.lang.Override @@ -1018,11 +1157,14 @@ public int getContainerConcurrency() { 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 @@ -1030,11 +1172,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 @@ -1042,6 +1187,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.
    * 
@@ -1056,6 +1203,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
@@ -1063,6 +1212,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ @java.lang.Override @@ -1071,14 +1221,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
@@ -1086,16 +1237,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 { @@ -1106,6 +1256,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.
@@ -1118,6 +1270,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1126,11 +1280,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.
@@ -1143,6 +1299,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1155,6 +1313,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.
@@ -1163,14 +1323,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.
    * 
@@ -1182,6 +1343,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1189,11 +1352,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.
    * 
@@ -1205,6 +1370,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1216,6 +1383,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -1223,19 +1392,21 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 19; private boolean confidential_; /** + * + * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; + * * @return The confidential. */ @java.lang.Override @@ -1246,33 +1417,44 @@ public boolean getConfidential() { 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
@@ -1280,6 +1462,7 @@ public boolean getConfidential() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -1288,14 +1471,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
@@ -1303,16 +1487,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 { @@ -1323,6 +1506,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
@@ -1330,6 +1515,7 @@ public java.lang.String getEncryptionKey() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1340,71 +1526,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
@@ -1412,6 +1619,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 @@ -1422,11 +1630,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 @@ -1435,29 +1646,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 { @@ -1468,12 +1679,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 @@ -1482,30 +1696,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 { @@ -1514,6 +1728,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1525,8 +1740,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_); } @@ -1536,18 +1750,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()); } @@ -1590,7 +1796,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (confidential_ != false) { output.writeBool(19, confidential_); } - 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_)) { @@ -1627,101 +1835,86 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, confidential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, confidential_); } - 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_); @@ -1737,84 +1930,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 (getContainerConcurrency() - != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() != other.getContainerConcurrency()) 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 (getConfidential() - != other.getConfidential()) 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 (getConfidential() != other.getConfidential()) 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; } @@ -1831,8 +2000,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(); @@ -1886,22 +2054,19 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; 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; @@ -1911,97 +2076,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
@@ -2010,47 +2181,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()
@@ -2058,19 +2229,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();
@@ -2168,9 +2339,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
@@ -2279,38 +2450,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;
@@ -2330,10 +2502,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());
       }
@@ -2387,9 +2557,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_);
           }
@@ -2413,9 +2584,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_);
           }
@@ -2452,9 +2624,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_);
           }
@@ -2499,22 +2672,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; @@ -2523,20 +2699,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 { @@ -2544,54 +2721,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; @@ -2599,19 +2783,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; @@ -2620,21 +2806,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 { @@ -2642,70 +2829,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 @@ -2713,53 +2910,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(); @@ -2771,6 +2973,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
@@ -2785,22 +2989,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -2816,11 +3020,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
@@ -2836,16 +3041,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2861,12 +3067,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2874,11 +3079,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
@@ -2893,23 +3099,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2924,16 +3128,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -2948,30 +3155,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();
@@ -2983,28 +3189,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -3012,11 +3220,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.
      * 
@@ -3024,16 +3233,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -3041,12 +3251,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3054,99 +3263,117 @@ 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 java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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) { @@ -3162,14 +3389,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(); @@ -3180,17 +3410,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; } @@ -3202,11 +3436,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) { @@ -3220,48 +3458,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_; @@ -3269,39 +3523,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) { @@ -3317,14 +3590,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(); @@ -3335,17 +3611,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; } @@ -3357,11 +3637,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) { @@ -3375,48 +3659,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_; @@ -3424,42 +3724,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) { @@ -3475,15 +3794,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(); @@ -3494,18 +3816,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; } @@ -3517,12 +3843,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) { @@ -3536,51 +3866,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_; @@ -3588,45 +3934,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) { @@ -3642,16 +4007,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(); @@ -3662,19 +4030,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; } @@ -3686,13 +4058,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) { @@ -3706,54 +4082,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_; @@ -3761,6 +4153,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
@@ -3769,12 +4163,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
@@ -3783,16 +4181,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
@@ -3801,6 +4202,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ @java.lang.Override @@ -3810,6 +4212,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
@@ -3818,6 +4222,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3825,12 +4230,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
@@ -3839,10 +4246,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; @@ -3850,18 +4258,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; @@ -3870,20 +4282,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 { @@ -3891,54 +4306,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; @@ -3946,34 +4374,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.
      * 
@@ -3994,14 +4435,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(); @@ -4012,6 +4454,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4022,7 +4466,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; } @@ -4034,6 +4480,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4052,6 +4500,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -4059,11 +4509,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.
      * 
@@ -4074,11 +4526,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.
      * 
@@ -4086,14 +4541,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_; @@ -4101,36 +4559,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.
@@ -4152,6 +4623,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.
@@ -4159,8 +4632,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();
@@ -4171,6 +4643,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.
@@ -4182,7 +4656,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;
         }
@@ -4194,6 +4670,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.
@@ -4213,6 +4691,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.
@@ -4221,11 +4701,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.
@@ -4237,11 +4719,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.
@@ -4250,26 +4735,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 containerConcurrency_ ;
+    private int containerConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @return The containerConcurrency. */ @java.lang.Override @@ -4277,30 +4768,36 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 14; + * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -4308,24 +4805,33 @@ public Builder clearContainerConcurrency() { 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() { @@ -4336,6 +4842,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4356,14 +4864,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(); @@ -4374,6 +4883,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4384,7 +4895,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; } @@ -4396,6 +4907,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4414,6 +4927,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4421,11 +4936,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.
      * 
@@ -4436,11 +4953,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.
      * 
@@ -4448,14 +4966,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_; @@ -4463,6 +4984,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
@@ -4470,13 +4993,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; @@ -4485,6 +5008,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
@@ -4492,15 +5017,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 { @@ -4508,6 +5032,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
@@ -4515,20 +5041,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
@@ -4536,15 +5064,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
@@ -4552,34 +5083,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.
@@ -4595,6 +5132,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4610,6 +5149,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4625,6 +5166,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4632,8 +5175,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();
@@ -4647,6 +5189,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4666,6 +5210,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4687,6 +5233,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.
@@ -4694,8 +5242,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();
@@ -4709,6 +5256,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4716,8 +5265,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());
@@ -4728,6 +5276,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4747,6 +5297,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4758,8 +5310,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);
@@ -4767,6 +5318,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4785,6 +5338,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4803,6 +5358,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4810,11 +5367,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.
@@ -4822,14 +5380,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.
@@ -4837,8 +5397,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 {
@@ -4846,6 +5406,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4854,10 +5416,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.
@@ -4865,12 +5429,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.
@@ -4878,38 +5443,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.
      * 
@@ -4924,6 +5497,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4938,6 +5513,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4952,14 +5529,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(); @@ -4973,14 +5551,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()); @@ -4991,6 +5570,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5011,14 +5592,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(); @@ -5032,14 +5614,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()); @@ -5050,14 +5633,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()); @@ -5068,6 +5652,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5078,8 +5664,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); @@ -5087,6 +5672,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5104,6 +5691,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5121,39 +5710,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 { @@ -5161,6 +5755,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5168,54 +5764,62 @@ 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_; } - private boolean confidential_ ; + private boolean confidential_; /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @return The confidential. */ @java.lang.Override @@ -5223,30 +5827,36 @@ public boolean getConfidential() { return confidential_; } /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether Confidential Cloud Run is enabled in this Revision.
      * 
* * bool confidential = 19; + * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -5254,51 +5864,65 @@ public Builder clearConfidential() { 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. */ @@ -5306,21 +5930,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; @@ -5328,6 +5955,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
@@ -5335,13 +5964,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; @@ -5350,6 +5979,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
@@ -5357,15 +5988,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 { @@ -5373,6 +6003,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
@@ -5380,20 +6012,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
@@ -5401,15 +6035,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
@@ -5417,23 +6054,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
@@ -5441,6 +6080,7 @@ public Builder setEncryptionKeyBytes(
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5448,6 +6088,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
@@ -5455,16 +6097,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
@@ -5472,34 +6117,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) { @@ -5509,12 +6163,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) { @@ -5524,12 +6182,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) { @@ -5539,15 +6201,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(); @@ -5561,12 +6226,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) { @@ -5580,12 +6249,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) { @@ -5601,15 +6274,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(); @@ -5623,15 +6299,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()); @@ -5642,12 +6321,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) { @@ -5661,19 +6344,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); @@ -5681,12 +6367,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) { @@ -5699,12 +6389,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) { @@ -5717,42 +6411,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 { @@ -5760,59 +6465,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
@@ -5820,6 +6540,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 @@ -5827,6 +6548,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
@@ -5834,16 +6557,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
@@ -5851,10 +6577,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; @@ -5862,18 +6589,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; @@ -5882,20 +6611,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 { @@ -5903,54 +6633,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; @@ -5958,19 +6695,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; @@ -5979,21 +6718,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 { @@ -6001,64 +6741,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); } @@ -6068,12 +6815,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(); } @@ -6082,16 +6829,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; @@ -6106,6 +6853,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 dd4009c..b35ab40 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
@@ -131,11 +163,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -150,11 +181,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.
    * 
@@ -163,169 +194,213 @@ 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.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getAnnotationsOrDefault(java.lang.String key, 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
@@ -334,10 +409,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
@@ -346,49 +424,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.
    * 
@@ -398,26 +494,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.
@@ -428,34 +532,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 container_concurrency = 14; + * * @return The containerConcurrency. */ int getContainerConcurrency(); /** + * + * *
    * 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.
    * 
@@ -465,6 +580,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
@@ -472,10 +589,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
@@ -483,12 +603,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.
@@ -496,9 +618,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.
@@ -508,6 +631,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.
@@ -517,6 +642,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -524,9 +651,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.
@@ -534,19 +662,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.
    * 
@@ -555,6 +685,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.
    * 
@@ -563,54 +695,67 @@ 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); /** + * + * *
    * Indicates whether Confidential Cloud Run is enabled in this Revision.
    * 
* * bool confidential = 19; + * * @return The confidential. */ boolean getConfidential(); /** + * + * *
    * 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
@@ -618,10 +763,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
@@ -629,12 +777,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
@@ -642,60 +792,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
@@ -703,49 +873,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..6cc1aad --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,265 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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#google/cloud/run/v2/condition.proto" + + "\032!google/cloud/run/v2/k8s.min.proto\032)goo" + + "gle/cloud/run/v2/vendor_settings.proto\032#" + + "google/longrunning/operations.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\"G\n\022GetRevisionReque" + + "st\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(\tB#\340A\002\372A\035\022\033run.googleapis.c" + + "om/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"b\n\025List" + + "RevisionsResponse\0220\n\trevisions\030\001 \003(\0132\035.g" + + "oogle.cloud.run.v2.Revision\022\027\n\017next_page" + + "_token\030\002 \001(\t\"o\n\025DeleteRevisionRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/" + + "Revision\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030" + + "\003 \001(\t\"\314\n\n\010Revision\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.R" + + "evision.LabelsEntry\022C\n\013annotations\030\005 \003(\013" + + "2..google.cloud.run.v2.Revision.Annotati" + + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "delete_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022-\n\014launch_stage" + + "\030\n \001(\0162\027.google.api.LaunchStage\0223\n\007servi" + + "ce\030\013 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Ser" + + "vice\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run" + + ".v2.RevisionScaling\0222\n\nvpc_access\030\r \001(\0132" + + "\036.google.cloud.run.v2.VpcAccess\022\035\n\025conta" + + "iner_concurrency\030\016 \001(\005\022*\n\007timeout\030\017 \001(\0132" + + "\031.google.protobuf.Duration\022\027\n\017service_ac" + + "count\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google" + + ".cloud.run.v2.Container\022,\n\007volumes\030\022 \003(\013" + + "2\033.google.cloud.run.v2.Volume\022\024\n\014confide" + + "ntial\030\023 \001(\010\022H\n\025execution_environment\030\024 \001" + + "(\0162).google.cloud.run.v2.ExecutionEnviro" + + "nment\022>\n\016encryption_key\030\025 \001(\tB&\372A#\n!clou" + + "dkms.googleapis.com/CryptoKey\022\030\n\013reconci" + + "ling\030\036 \001(\010B\003\340A\003\0227\n\nconditions\030\037 \003(\0132\036.go" + + "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + + "rved_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\340A\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revision" + + "\022Oprojects/{project}/locations/{location" + + "}/services/{service}/revisions/{revision" + + "}R\001\0012\346\004\n\tRevisions\022\236\001\n\013GetRevision\022\'.goo" + + "gle.cloud.run.v2.GetRevisionRequest\032\035.go" + + "ogle.cloud.run.v2.Revision\"G\202\323\344\223\002:\0228/v2/" + + "{name=projects/*/locations/*/services/*/" + + "revisions/*}\332A\004name\022\261\001\n\rListRevisions\022)." + + "google.cloud.run.v2.ListRevisionsRequest" + + "\032*.google.cloud.run.v2.ListRevisionsResp" + + "onse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/loc" + + "ations/*/services/*}/revisions\332A\006parent\022" + + "\273\001\n\016DeleteRevision\022*.google.cloud.run.v2" + + ".DeleteRevisionRequest\032\035.google.longrunn" + + "ing.Operation\"^\202\323\344\223\002:*8/v2/{name=project" + + "s/*/locations/*/services/*/revisions/*}\332" + + "A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformBb\n\027com.google.clou" + + "d.run.v2B\rRevisionProtoP\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.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.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", + "ContainerConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "Confidential", + "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.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.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 b4989ef..94f8fb6 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,56 +68,61 @@ 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) { throw e.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 @@ -112,11 +133,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 @@ -125,6 +149,7 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +161,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_); } @@ -154,12 +178,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; @@ -169,17 +191,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; } @@ -200,118 +220,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() @@ -319,16 +348,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(); @@ -340,9 +368,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 @@ -361,7 +389,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(); @@ -372,38 +401,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; @@ -447,13 +477,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 @@ -461,42 +494,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 @@ -504,37 +546,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); } @@ -544,12 +592,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(); } @@ -558,16 +606,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; @@ -582,6 +630,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 6e76020..8248e5a 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,137 +77,151 @@ 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 56:
+            {
+              containerConcurrency_ = input.readInt32();
+              break;
             }
+          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 56: {
-
-            containerConcurrency_ = input.readInt32();
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (timeout_ != null) {
-              subBuilder = timeout_.toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(timeout_);
-              timeout_ = subBuilder.buildPartial();
+          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 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;
+          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;
             }
-            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 96:
+            {
+              confidential_ = input.readBool();
+              break;
             }
-            volumes_.add(
-                input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry));
-            break;
-          }
-          case 96: {
+          case 104:
+            {
+              int rawValue = input.readEnum();
 
-            confidential_ = input.readBool();
-            break;
-          }
-          case 104: {
-            int rawValue = input.readEnum();
-
-            executionEnvironment_ = rawValue;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              executionEnvironment_ = rawValue;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            encryptionKey_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              encryptionKey_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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_);
@@ -202,42 +233,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 @@ -246,30 +282,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 { @@ -278,24 +314,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_; } @@ -304,28 +339,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -333,11 +370,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.
    * 
@@ -345,16 +383,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -362,12 +400,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -375,24 +412,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_; } @@ -401,28 +438,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -430,11 +469,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.
    * 
@@ -442,16 +482,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -459,12 +500,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -474,11 +514,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 @@ -486,18 +529,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.
    * 
@@ -512,12 +562,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 @@ -525,12 +578,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 @@ -538,6 +594,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.
@@ -553,11 +611,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int CONTAINER_CONCURRENCY_FIELD_NUMBER = 7;
   private int containerConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 container_concurrency = 7; + * * @return The containerConcurrency. */ @java.lang.Override @@ -568,11 +629,14 @@ public int getContainerConcurrency() { 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 @@ -580,11 +644,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 @@ -592,6 +659,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.
    * 
@@ -606,6 +675,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
@@ -614,6 +685,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -622,14 +694,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
@@ -638,16 +711,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 { @@ -658,6 +730,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.
@@ -670,6 +744,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -678,11 +754,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.
@@ -695,6 +773,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -707,6 +787,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.
@@ -715,14 +797,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.
    * 
@@ -734,6 +817,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -741,11 +826,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.
    * 
@@ -757,6 +844,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -768,6 +857,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -775,19 +866,21 @@ 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 CONFIDENTIAL_FIELD_NUMBER = 12; private boolean confidential_; /** + * + * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; + * * @return The confidential. */ @java.lang.Override @@ -798,33 +891,44 @@ public boolean getConfidential() { 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
@@ -832,6 +936,7 @@ public boolean getConfidential() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -840,14 +945,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
@@ -855,16 +961,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 { @@ -873,6 +978,7 @@ public java.lang.String getEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -884,23 +990,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()); } @@ -925,7 +1022,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (confidential_ != false) { output.writeBool(12, confidential_); } - 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_)) { @@ -943,60 +1042,54 @@ 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 (containerConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, containerConcurrency_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, containerConcurrency_); } 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 (confidential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, confidential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, confidential_); } - 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_); @@ -1009,47 +1102,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 (getContainerConcurrency() - != other.getContainerConcurrency()) return false; + if (getContainerConcurrency() != other.getContainerConcurrency()) 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 (getConfidential() - != other.getConfidential()) 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 (getConfidential() != other.getConfidential()) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1096,8 +1177,7 @@ public int hashCode() { hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConfidential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfidential()); hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; @@ -1107,97 +1187,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.
@@ -1205,47 +1292,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()
@@ -1253,18 +1340,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();
@@ -1316,9 +1403,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
@@ -1337,7 +1424,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();
@@ -1390,38 +1478,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;
@@ -1434,10 +1523,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());
       }
@@ -1472,9 +1559,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_);
           }
@@ -1498,9 +1586,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_);
           }
@@ -1544,23 +1633,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; @@ -1569,21 +1661,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 { @@ -1591,78 +1684,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(); @@ -1674,28 +1773,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1703,11 +1804,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.
      * 
@@ -1715,16 +1817,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1732,12 +1835,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1745,80 +1847,81 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -1830,28 +1933,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 java.lang.NullPointerException(); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1859,11 +1964,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.
      * 
@@ -1871,16 +1977,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1888,12 +1995,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1901,94 +2007,106 @@ 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 java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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.
      * 
@@ -2009,14 +2127,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(); @@ -2027,6 +2146,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2037,7 +2158,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; } @@ -2049,6 +2172,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2067,6 +2192,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -2074,11 +2201,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.
      * 
@@ -2089,11 +2218,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.
      * 
@@ -2101,14 +2233,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_; @@ -2116,36 +2251,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.
@@ -2167,6 +2315,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.
@@ -2174,8 +2324,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();
@@ -2186,6 +2335,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.
@@ -2197,7 +2348,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;
         }
@@ -2209,6 +2362,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.
@@ -2228,6 +2383,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.
@@ -2236,11 +2393,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.
@@ -2252,11 +2411,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.
@@ -2265,26 +2427,32 @@ 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_;
     }
 
-    private int containerConcurrency_ ;
+    private int containerConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @return The containerConcurrency. */ @java.lang.Override @@ -2292,30 +2460,36 @@ public int getContainerConcurrency() { return containerConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @param value The containerConcurrency to set. * @return This builder for chaining. */ public Builder setContainerConcurrency(int value) { - + containerConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 container_concurrency = 7; + * * @return This builder for chaining. */ public Builder clearContainerConcurrency() { - + containerConcurrency_ = 0; onChanged(); return this; @@ -2323,24 +2497,33 @@ public Builder clearContainerConcurrency() { 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() { @@ -2351,6 +2534,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2371,14 +2556,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(); @@ -2389,6 +2575,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2399,7 +2587,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; } @@ -2411,6 +2599,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2429,6 +2619,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2436,11 +2628,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.
      * 
@@ -2451,11 +2645,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.
      * 
@@ -2463,14 +2658,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_; @@ -2478,6 +2676,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
@@ -2486,13 +2686,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; @@ -2501,6 +2701,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
@@ -2509,15 +2711,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 { @@ -2525,6 +2726,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
@@ -2533,20 +2736,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
@@ -2555,15 +2760,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
@@ -2572,34 +2780,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.
@@ -2615,6 +2829,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2630,6 +2846,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2645,6 +2863,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2652,8 +2872,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();
@@ -2667,6 +2886,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2686,6 +2907,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2707,6 +2930,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.
@@ -2714,8 +2939,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();
@@ -2729,6 +2953,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2736,8 +2962,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());
@@ -2748,6 +2973,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2767,6 +2994,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2778,8 +3007,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);
@@ -2787,6 +3015,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2805,6 +3035,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2823,6 +3055,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2830,11 +3064,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.
@@ -2842,14 +3077,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.
@@ -2857,8 +3094,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 {
@@ -2866,6 +3103,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2874,10 +3113,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.
@@ -2885,12 +3126,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.
@@ -2898,38 +3140,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.
      * 
@@ -2944,6 +3194,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2958,6 +3210,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2972,14 +3226,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(); @@ -2993,14 +3248,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()); @@ -3011,6 +3267,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3031,14 +3289,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(); @@ -3052,14 +3311,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()); @@ -3070,14 +3330,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()); @@ -3088,6 +3349,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3098,8 +3361,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); @@ -3107,6 +3369,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3124,6 +3388,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3141,39 +3407,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 { @@ -3181,6 +3452,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3188,54 +3461,62 @@ 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_; } - private boolean confidential_ ; + private boolean confidential_; /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @return The confidential. */ @java.lang.Override @@ -3243,30 +3524,36 @@ public boolean getConfidential() { return confidential_; } /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { - + confidential_ = value; onChanged(); return this; } /** + * + * *
      * Enables Confidential Cloud Run in Revisions created using this template.
      * 
* * bool confidential = 12; + * * @return This builder for chaining. */ public Builder clearConfidential() { - + confidential_ = false; onChanged(); return this; @@ -3274,51 +3561,65 @@ public Builder clearConfidential() { 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. */ @@ -3326,21 +3627,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; @@ -3348,6 +3652,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
@@ -3355,13 +3661,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; @@ -3370,6 +3676,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
@@ -3377,15 +3685,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 { @@ -3393,6 +3700,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
@@ -3400,20 +3709,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
@@ -3421,15 +3732,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
@@ -3437,23 +3751,23 @@ 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; } + @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); } @@ -3463,12 +3777,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(); } @@ -3477,16 +3791,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; @@ -3501,6 +3815,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 7f49247..bcd3b92 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,52 +61,52 @@ 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.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -92,70 +115,76 @@ 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.
    * 
* * map<string, string> annotations = 3; */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getAnnotationsOrDefault(java.lang.String key, 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.
    * 
@@ -165,26 +194,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.
@@ -195,34 +232,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 container_concurrency = 7; + * * @return The containerConcurrency. */ int getContainerConcurrency(); /** + * + * *
    * 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.
    * 
@@ -232,6 +280,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
@@ -240,10 +290,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
@@ -252,12 +305,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.
@@ -265,9 +320,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.
@@ -277,6 +333,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.
@@ -286,6 +344,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -293,9 +353,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.
@@ -303,19 +364,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.
    * 
@@ -324,6 +387,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.
    * 
@@ -332,54 +397,67 @@ 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); /** + * + * *
    * Enables Confidential Cloud Run in Revisions created using this template.
    * 
* * bool confidential = 12; + * * @return The confidential. */ boolean getConfidential(); /** + * + * *
    * 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
@@ -387,10 +465,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
@@ -398,8 +479,8 @@ 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(); } 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..ef62fbd --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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\"\212\006\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\035\n\025container_concurrency\030\007 \001(\005\022*" + + "\n\007timeout\030\010 \001(\0132\031.google.protobuf.Durati" + + "on\022\027\n\017service_account\030\t \001(\t\0222\n\ncontainer" + + "s\030\n \003(\0132\036.google.cloud.run.v2.Container\022" + + ",\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.V" + + "olume\022\024\n\014confidential\030\014 \001(\010\022H\n\025execution" + + "_environment\030\r \001(\0162).google.cloud.run.v2" + + ".ExecutionEnvironment\022>\n\016encryption_key\030" + + "\016 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\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\001Bj\n\027com.google.c" + + "loud.run.v2B\025RevisionTemplateProtoP\001Z6go" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/run/v2;runb\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", + "ContainerConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "Confidential", + "ExecutionEnvironment", + "EncryptionKey", + }); + 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 c589f6a..ed5a8dd 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,53 +71,59 @@ 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) { throw e.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.
@@ -108,7 +131,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 @@ -117,14 +143,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.
@@ -132,17 +159,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 { @@ -153,12 +181,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 @@ -167,30 +198,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 { @@ -199,6 +230,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,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_); } @@ -241,17 +272,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; } @@ -272,118 +302,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() @@ -391,16 +430,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(); @@ -412,9 +450,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 @@ -433,7 +471,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(); @@ -444,38 +483,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; @@ -523,6 +563,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.
@@ -530,14 +572,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; @@ -546,6 +590,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.
@@ -553,16 +599,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 { @@ -570,6 +617,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.
@@ -577,21 +626,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.
@@ -599,16 +652,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.
@@ -616,17 +674,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; @@ -634,19 +694,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; @@ -655,21 +717,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 { @@ -677,64 +740,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); } @@ -744,12 +814,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(); } @@ -758,16 +828,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; @@ -782,6 +852,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 6b0fa63..c94c0cc 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,40 +74,42 @@ 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) {
       throw e.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_);
@@ -99,22 +118,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.
@@ -123,6 +147,7 @@ private SecretVolumeSource(
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secret. */ @java.lang.Override @@ -131,14 +156,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.
@@ -147,16 +173,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 { @@ -167,6 +192,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.
@@ -182,6 +209,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.
@@ -193,11 +222,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.
@@ -213,6 +244,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.
@@ -228,6 +261,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.
@@ -239,14 +274,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.
@@ -266,6 +302,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
    * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -274,6 +311,7 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +323,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_); } @@ -309,12 +346,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; @@ -324,19 +359,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; } @@ -361,97 +394,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
@@ -460,21 +500,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()
@@ -482,17 +524,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();
@@ -510,9 +552,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
@@ -531,7 +573,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) {
@@ -552,38 +595,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;
@@ -614,9 +658,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_);
           }
@@ -653,10 +698,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.
@@ -665,13 +713,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; @@ -680,6 +728,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.
@@ -688,15 +738,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 { @@ -704,6 +753,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.
@@ -712,20 +763,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.
@@ -734,15 +787,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.
@@ -751,34 +807,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.
@@ -797,6 +859,8 @@ public java.util.List getItemsList() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -815,6 +879,8 @@ public int getItemsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -833,6 +899,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.
@@ -843,8 +911,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();
@@ -858,6 +925,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -880,6 +949,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -904,6 +975,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.
@@ -914,8 +987,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();
@@ -929,6 +1001,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -939,8 +1013,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());
@@ -951,6 +1024,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -973,6 +1048,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -987,8 +1064,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);
@@ -996,6 +1072,8 @@ public Builder addAllItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1017,6 +1095,8 @@ public Builder clearItems() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1038,6 +1118,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.
@@ -1048,11 +1130,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.
@@ -1063,14 +1146,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.
@@ -1081,8 +1166,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 {
@@ -1090,6 +1175,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.
@@ -1101,10 +1188,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.
@@ -1115,12 +1204,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.
@@ -1131,27 +1221,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.
@@ -1171,6 +1265,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
      * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -1178,6 +1273,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.
@@ -1197,16 +1294,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.
@@ -1226,17 +1326,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); } @@ -1246,12 +1347,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(); } @@ -1260,16 +1361,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; @@ -1284,6 +1385,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 71% 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 62e24ea..7bdd5f1 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,257 +90,293 @@ 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();
-            }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
+              creator_ = s;
+              break;
             }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            creator_ = s;
-            break;
-          }
-          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();
+          case 274:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            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;
+              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) {
       throw e.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_);
@@ -338,29 +391,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);
   }
@@ -368,6 +422,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
@@ -377,6 +433,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -385,14 +442,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
@@ -402,16 +460,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 { @@ -422,12 +479,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 @@ -436,30 +496,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 { @@ -470,12 +530,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 @@ -484,30 +547,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 { @@ -518,12 +581,15 @@ 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.
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -532,24 +598,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_; } @@ -558,6 +623,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -573,22 +640,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
@@ -605,11 +672,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.
@@ -626,16 +694,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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.
@@ -652,12 +720,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -665,24 +732,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_;
   }
@@ -691,6 +758,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
@@ -702,22 +771,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
-
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -730,11 +799,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
@@ -747,16 +817,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -769,12 +840,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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -784,11 +854,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 @@ -796,11 +870,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 @@ -808,11 +886,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() { @@ -822,11 +903,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 @@ -834,11 +919,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 @@ -846,11 +935,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() { @@ -860,11 +952,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 @@ -872,11 +968,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 @@ -884,11 +984,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() { @@ -898,12 +1001,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 @@ -911,12 +1018,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 @@ -924,12 +1035,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() { @@ -939,11 +1053,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 @@ -952,29 +1069,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 { @@ -985,11 +1102,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 @@ -998,29 +1118,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 { @@ -1031,11 +1151,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 @@ -1044,29 +1167,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 { @@ -1077,11 +1200,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 @@ -1090,29 +1216,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 { @@ -1123,6 +1249,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
@@ -1130,12 +1258,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
@@ -1143,17 +1275,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).
@@ -1162,12 +1299,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).
@@ -1176,9 +1317,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; @@ -1187,11 +1330,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 @@ -1199,18 +1345,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.
    * 
@@ -1225,11 +1378,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 @@ -1237,23 +1395,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() { @@ -1263,6 +1432,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
@@ -1276,6 +1447,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
@@ -1285,11 +1458,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
@@ -1303,6 +1478,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
@@ -1316,6 +1493,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
@@ -1325,14 +1504,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
@@ -1340,6 +1520,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 @@ -1350,6 +1531,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
@@ -1357,7 +1540,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 @@ -1365,6 +1551,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
@@ -1372,14 +1560,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
@@ -1387,7 +1582,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() { @@ -1397,6 +1594,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
@@ -1404,13 +1603,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
@@ -1418,14 +1621,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
@@ -1433,13 +1640,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
@@ -1447,13 +1658,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
@@ -1461,24 +1676,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 @@ -1487,31 +1708,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 { @@ -1522,12 +1745,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 @@ -1536,30 +1764,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 { @@ -1570,66 +1800,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( @@ -1640,11 +1890,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 @@ -1653,29 +1906,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 { @@ -1686,6 +1939,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.
@@ -1709,6 +1964,7 @@ public java.lang.String getUri() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1719,12 +1975,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 @@ -1733,30 +1992,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 { @@ -1765,6 +2024,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1776,8 +2036,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_); } @@ -1790,18 +2049,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()); } @@ -1826,7 +2077,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()) { @@ -1887,44 +2139,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_); @@ -1938,37 +2185,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_); @@ -1977,15 +2218,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_); @@ -1998,88 +2237,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; } @@ -2098,8 +2311,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(); @@ -2149,8 +2361,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(); @@ -2170,8 +2381,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(); @@ -2179,97 +2389,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.
@@ -2280,45 +2496,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);
     }
@@ -2328,19 +2543,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();
@@ -2442,9 +2657,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
@@ -2555,38 +2770,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;
@@ -2610,10 +2826,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());
       }
@@ -2672,9 +2886,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_);
           }
@@ -2704,9 +2919,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_);
           }
@@ -2738,9 +2954,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_);
           }
@@ -2785,10 +3002,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
@@ -2798,13 +3018,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; @@ -2813,6 +3033,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
@@ -2822,15 +3044,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 { @@ -2838,6 +3059,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
@@ -2847,20 +3070,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
@@ -2870,15 +3095,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
@@ -2888,16 +3116,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; @@ -2905,19 +3133,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; @@ -2926,21 +3156,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 { @@ -2948,57 +3179,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; @@ -3006,19 +3244,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; @@ -3027,21 +3267,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 { @@ -3049,70 +3290,80 @@ 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.
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -3120,53 +3371,58 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
      * 
* * 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.
      * 
* * 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(); @@ -3178,6 +3434,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3193,22 +3451,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
@@ -3225,11 +3483,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.
@@ -3246,16 +3505,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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.
@@ -3272,12 +3532,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3285,11 +3544,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.
@@ -3305,23 +3565,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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.
@@ -3337,16 +3595,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3362,30 +3623,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();
@@ -3397,6 +3657,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
@@ -3408,22 +3670,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
-
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -3436,11 +3698,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
@@ -3453,16 +3716,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3475,12 +3739,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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3488,11 +3751,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
@@ -3504,23 +3768,21 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3532,16 +3794,19 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -3553,49 +3818,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) { @@ -3611,14 +3892,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(); @@ -3629,17 +3913,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; } @@ -3651,11 +3939,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) { @@ -3669,48 +3961,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_; @@ -3718,39 +4026,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) { @@ -3766,14 +4093,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(); @@ -3784,17 +4114,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; } @@ -3806,11 +4140,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) { @@ -3824,48 +4162,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_; @@ -3873,39 +4227,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) { @@ -3921,14 +4294,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(); @@ -3939,17 +4315,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; } @@ -3961,11 +4341,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) { @@ -3979,48 +4363,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_; @@ -4028,42 +4428,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) { @@ -4079,15 +4498,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(); @@ -4098,18 +4520,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; } @@ -4121,12 +4547,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) { @@ -4140,51 +4570,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_; @@ -4192,18 +4638,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; @@ -4212,20 +4660,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 { @@ -4233,54 +4682,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; @@ -4288,18 +4744,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; @@ -4308,20 +4766,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 { @@ -4329,54 +4788,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; @@ -4384,18 +4850,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; @@ -4404,20 +4872,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 { @@ -4425,54 +4894,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; @@ -4480,18 +4956,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; @@ -4500,20 +4978,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 { @@ -4521,54 +5000,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; @@ -4576,6 +5062,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
@@ -4583,12 +5071,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
@@ -4596,16 +5088,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
@@ -4613,15 +5108,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
@@ -4629,6 +5128,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. */ @@ -4636,12 +5136,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
@@ -4649,10 +5151,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; @@ -4660,6 +5163,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).
@@ -4668,12 +5173,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).
@@ -4682,16 +5191,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).
@@ -4700,6 +5212,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ @java.lang.Override @@ -4709,6 +5222,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).
@@ -4717,6 +5232,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4724,12 +5240,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).
@@ -4738,10 +5256,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; @@ -4749,34 +5268,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.
      * 
@@ -4797,6 +5329,8 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4815,6 +5349,8 @@ public Builder setBinaryAuthorization( return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4825,7 +5361,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; } @@ -4837,6 +5375,8 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4855,6 +5395,8 @@ public Builder clearBinaryAuthorization() { return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4862,11 +5404,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.
      * 
@@ -4877,11 +5421,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.
      * 
@@ -4889,14 +5436,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_; @@ -4904,39 +5454,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) { @@ -4952,14 +5521,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(); @@ -4970,17 +5542,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; } @@ -4992,11 +5570,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) { @@ -5010,66 +5592,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
@@ -5086,6 +5690,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
@@ -5102,6 +5708,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
@@ -5118,6 +5726,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
@@ -5126,8 +5736,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();
@@ -5141,6 +5750,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
@@ -5161,6 +5772,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
@@ -5183,6 +5796,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
@@ -5191,8 +5806,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();
@@ -5206,6 +5820,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
@@ -5214,8 +5830,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());
@@ -5226,6 +5841,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
@@ -5246,6 +5863,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
@@ -5258,8 +5877,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);
@@ -5267,6 +5885,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
@@ -5286,6 +5906,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
@@ -5305,6 +5927,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
@@ -5313,11 +5937,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
@@ -5326,14 +5951,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
@@ -5342,8 +5969,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 {
@@ -5351,6 +5978,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
@@ -5360,10 +5989,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
@@ -5372,12 +6003,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
@@ -5386,27 +6018,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
@@ -5414,6 +6050,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 @@ -5421,6 +6058,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
@@ -5428,16 +6067,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
@@ -5445,10 +6087,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; @@ -5456,8 +6099,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
@@ -5465,13 +6113,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
@@ -5479,17 +6132,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
@@ -5497,7 +6157,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) { @@ -5513,6 +6175,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
@@ -5520,10 +6184,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(); @@ -5534,6 +6199,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
@@ -5541,13 +6208,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; } @@ -5559,6 +6230,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
@@ -5566,7 +6239,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) { @@ -5580,6 +6255,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
@@ -5587,14 +6264,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
@@ -5602,17 +6283,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
@@ -5620,35 +6306,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
@@ -5656,7 +6353,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) { @@ -5666,6 +6365,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
@@ -5673,7 +6374,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) { @@ -5683,6 +6386,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
@@ -5690,7 +6395,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) { @@ -5700,6 +6407,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
@@ -5707,10 +6416,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(); @@ -5724,6 +6434,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
@@ -5731,7 +6443,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) { @@ -5745,6 +6459,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
@@ -5752,7 +6468,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) { @@ -5768,6 +6486,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
@@ -5775,10 +6495,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(); @@ -5792,6 +6513,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
@@ -5799,10 +6522,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()); @@ -5813,6 +6537,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
@@ -5820,7 +6546,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) { @@ -5834,6 +6562,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
@@ -5841,14 +6571,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); @@ -5856,6 +6587,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
@@ -5863,7 +6596,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) { @@ -5876,6 +6611,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
@@ -5883,7 +6620,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) { @@ -5896,6 +6635,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
@@ -5903,13 +6644,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
@@ -5917,16 +6661,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
@@ -5934,10 +6682,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 { @@ -5945,6 +6695,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
@@ -5952,13 +6704,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
@@ -5966,14 +6722,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
@@ -5981,22 +6740,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_; @@ -6004,20 +6767,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; @@ -6026,22 +6793,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 { @@ -6049,60 +6819,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; @@ -6110,19 +6893,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; @@ -6131,21 +6918,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 { @@ -6153,82 +6943,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) { @@ -6238,13 +7050,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) { @@ -6254,13 +7070,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) { @@ -6270,13 +7090,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) { @@ -6293,13 +7117,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) { @@ -6313,13 +7141,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) { @@ -6335,13 +7167,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) { @@ -6358,13 +7194,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) { @@ -6378,13 +7218,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) { @@ -6398,20 +7242,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); @@ -6419,13 +7266,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) { @@ -6438,13 +7289,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) { @@ -6457,45 +7312,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 { @@ -6503,51 +7371,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(), @@ -6559,18 +7445,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; @@ -6579,20 +7467,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 { @@ -6600,61 +7489,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.
@@ -6678,6 +7576,7 @@ public Builder setUriBytes(
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -6685,6 +7584,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.
@@ -6708,16 +7609,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.
@@ -6741,10 +7645,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; @@ -6752,19 +7657,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; @@ -6773,21 +7680,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 { @@ -6795,64 +7703,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); } @@ -6862,12 +7777,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(); } @@ -6876,16 +7791,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; @@ -6900,6 +7815,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 79% 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 584cf8e..a710e51 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,67 +51,82 @@ 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.
    * 
* * 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.
@@ -108,6 +144,8 @@ public interface ServiceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -123,15 +161,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.
@@ -147,9 +183,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.
@@ -165,11 +202,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -185,11 +221,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
@@ -203,6 +239,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
@@ -214,15 +252,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
@@ -234,9 +270,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
@@ -248,11 +285,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 6;
    */
-
-  java.lang.String getAnnotationsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getAnnotationsOrDefault(java.lang.String key, 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
@@ -264,202 +300,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
@@ -467,10 +567,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
@@ -478,11 +581,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).
@@ -491,10 +597,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).
@@ -503,29 +612,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.
    * 
@@ -535,33 +653,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
@@ -570,9 +704,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
@@ -583,6 +718,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
@@ -593,6 +730,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
@@ -601,9 +740,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
@@ -612,10 +753,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
@@ -623,11 +765,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
@@ -635,11 +780,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
@@ -647,11 +797,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
@@ -659,11 +814,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
@@ -671,11 +830,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
@@ -683,10 +845,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
@@ -694,10 +860,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
@@ -705,11 +875,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
@@ -717,132 +890,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.
@@ -866,29 +1083,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..b941a5b --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,331 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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#google/cloud/run/v2/condition.proto\032" + + "+google/cloud/run/v2/revision_template.p" + + "roto\032(google/cloud/run/v2/traffic_target" + + ".proto\032)google/cloud/run/v2/vendor_setti" + + "ngs.proto\032\036google/iam/v1/iam_policy.prot" + + "o\032\032google/iam/v1/policy.proto\032#google/lo" + + "ngrunning/operations.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\256\001\n\024CreateServiceRequest\0222" + + "\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.c" + + "om/Service\0222\n\007service\030\002 \001(\0132\034.google.clo" + + "ud.run.v2.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\"\251\001\n\024Updat" + + "eServiceRequest\0222\n\007service\030\001 \001(\0132\034.googl" + + "e.cloud.run.v2.ServiceB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + + "validate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\"\206\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001" + + "(\tB\"\340A\002\372A\034\022\032run.googleapis.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\024ListServicesRespo" + + "nse\022.\n\010services\030\001 \003(\0132\034.google.cloud.run" + + ".v2.Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021" + + "GetServiceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032run.googleapis.com/Service\"m\n\024DeleteSer" + + "viceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.g" + + "oogleapis.com/Service\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\013description\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.cloud.run.v2.Service.Label" + + "sEntry\022B\n\013annotations\030\006 \003(\0132-.google.clo" + + "ud.run.v2.Service.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\n \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast" + + "_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016" + + "client_version\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#." + + "google.cloud.run.v2.IngressTraffic\022-\n\014la" + + "unch_stage\030\020 \001(\0162\027.google.api.LaunchStag" + + "e\022F\n\024binary_authorization\030\021 \001(\0132(.google" + + ".cloud.run.v2.BinaryAuthorization\022<\n\010tem" + + "plate\030\022 \001(\0132%.google.cloud.run.v2.Revisi" + + "onTemplateB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".googl" + + "e.cloud.run.v2.TrafficTarget\022 \n\023observed" + + "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + + "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + + "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + + "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + + "com/Revision\022D\n\027latest_created_revision\030" + + "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + + "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + + "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + + "ri\030$ \001(\tB\003\340A\003\022\030\n\013reconciling\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\020Annotations" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:^\352" + + "A[\n\032run.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}R\001\0012\266\013\n\010Services\022\311\001\n\rCreateSer" + + "vice\022).google.cloud.run.v2.CreateService" + + "Request\032\035.google.longrunning.Operation\"n" + + "\202\323\344\223\0027\",/v2/{parent=projects/*/locations" + + "/*}/services:\007service\332A\031parent,service,s" + + "ervice_id\312A\022\n\007Service\022\007Service\022\217\001\n\nGetSe" + + "rvice\022&.google.cloud.run.v2.GetServiceRe" + + "quest\032\034.google.cloud.run.v2.Service\";\202\323\344" + + "\223\002.\022,/v2/{name=projects/*/locations/*/se" + + "rvices/*}\332A\004name\022\242\001\n\014ListServices\022(.goog" + + "le.cloud.run.v2.ListServicesRequest\032).go" + + "ogle.cloud.run.v2.ListServicesResponse\"=" + + "\202\323\344\223\002.\022,/v2/{parent=projects/*/locations" + + "/*}/services\332A\006parent\022\313\001\n\rUpdateService\022" + + ").google.cloud.run.v2.UpdateServiceReque" + + "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + + "?24/v2/{service.name=projects/*/location" + + "s/*/services/*}:\007service\332A\023service,updat" + + "e_mask\312A\022\n\007Service\022\007Service\022\253\001\n\rDeleteSe" + + "rvice\022).google.cloud.run.v2.DeleteServic" + + "eRequest\032\035.google.longrunning.Operation\"" + + "P\202\323\344\223\002.*,/v2/{name=projects/*/locations/" + + "*/services/*}\332A\004name\312A\022\n\007Service\022\007Servic" + + "e\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"E\202" + + "\323\344\223\002?\022=/v2/{resource=projects/*/location" + + "s/*/services/*}:getIamPolicy\022\223\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{r" + + "esource=projects/*/locations/*/services/" + + "*}:setIamPolicy:\001*\022\271\001\n\022TestIamPermission" + + "s\022(.google.iam.v1.TestIamPermissionsRequ" + + "est\032).google.iam.v1.TestIamPermissionsRe" + + "sponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*" + + "/locations/*/services/*}:testIamPermissi" + + "ons:\001*\032F\312A\022run.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformBa" + + "\n\027com.google.cloud.run.v2B\014ServiceProtoP" + + "\001Z6google.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.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.FieldMaskProto.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", "UpdateMask", "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.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.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.FieldMaskProto.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 0ef80e2..fbe4964 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,97 +73,116 @@ 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) {
       throw e.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 @@ -155,30 +191,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 { @@ -189,12 +225,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 @@ -205,12 +244,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 @@ -219,30 +261,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 { @@ -251,6 +293,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,9 +305,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_)) { @@ -285,16 +330,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_); @@ -307,7 +353,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); @@ -315,12 +361,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; } @@ -345,97 +388,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.
@@ -443,21 +492,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()
@@ -465,16 +516,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,9 +540,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
@@ -511,7 +561,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_;
@@ -524,38 +575,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;
@@ -609,51 +661,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. */ @@ -661,21 +729,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; @@ -683,19 +754,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; @@ -704,21 +777,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 { @@ -726,70 +800,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 @@ -797,32 +881,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; @@ -830,19 +920,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; @@ -851,21 +943,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 { @@ -873,64 +966,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); } @@ -940,12 +1040,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(); } @@ -954,16 +1054,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; @@ -978,6 +1078,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 e8e6bb2..602738c 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,102 +73,122 @@ 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) { throw e.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 @@ -160,29 +197,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 { @@ -193,11 +230,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 @@ -208,11 +248,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 @@ -221,29 +264,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 { @@ -254,11 +297,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 @@ -267,29 +313,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 { @@ -298,6 +344,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,9 +356,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_)) { @@ -335,16 +384,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_); @@ -360,22 +410,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; } @@ -402,118 +449,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() @@ -521,16 +577,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(); @@ -548,9 +603,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 @@ -569,7 +624,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_; @@ -583,38 +639,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; @@ -672,51 +729,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. */ @@ -724,21 +797,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; @@ -746,18 +822,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; @@ -766,20 +844,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 { @@ -787,66 +866,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 @@ -854,30 +943,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; @@ -885,18 +980,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; @@ -905,20 +1002,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 { @@ -926,54 +1024,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; @@ -981,18 +1086,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; @@ -1001,20 +1108,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 { @@ -1022,61 +1130,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); } @@ -1086,12 +1201,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(); } @@ -1100,16 +1215,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; @@ -1124,6 +1239,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 159e5af..90b5d1f 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,82 +68,92 @@ 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(); + 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 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = 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) { throw e.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 @@ -135,11 +161,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 @@ -147,11 +177,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() { @@ -161,11 +194,14 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,11 +209,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -185,6 +224,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -199,12 +240,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { 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 @@ -215,6 +259,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
@@ -222,6 +268,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -230,6 +277,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +289,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()); } @@ -265,20 +312,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } 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; @@ -288,27 +331,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.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 (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) 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; } @@ -329,128 +369,135 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().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() @@ -458,16 +505,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(); @@ -491,9 +537,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 @@ -512,7 +558,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 { @@ -533,38 +580,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; @@ -616,24 +664,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() { @@ -644,11 +703,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) { @@ -664,14 +726,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(); @@ -682,17 +746,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; } @@ -704,11 +771,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) { @@ -722,48 +792,59 @@ 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_; @@ -771,34 +852,47 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -819,14 +913,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -837,6 +932,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -847,7 +944,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -859,6 +956,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -877,6 +976,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -884,11 +985,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -899,11 +1002,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -911,27 +1017,33 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } - 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 @@ -939,39 +1051,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
@@ -979,6 +1099,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -986,6 +1107,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
@@ -993,16 +1116,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
@@ -1010,17 +1136,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); } @@ -1030,12 +1157,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(); } @@ -1044,16 +1171,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; @@ -1068,6 +1195,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 70% 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 762d65e..f58d267 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,58 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
@@ -62,17 +97,22 @@ public interface UpdateServiceRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * 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
@@ -80,6 +120,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..7bd1d6a --- /dev/null +++ b/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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*\200\001\n" + + "\024ExecutionEnvironment\022%\n!EXECUTION_ENVIR" + + "ONMENT_UNSPECIFIED\020\000\022!\n\035EXECUTION_ENVIRO" + + "NMENT_DEFAULT\020\001\022\036\n\032EXECUTION_ENVIRONMENT" + + "_GEN2\020\002Bh\n\027com.google.cloud.run.v2B\023Vend" + + "orSettingsProtoP\001Z6google.golang.org/gen" + + "proto/googleapis/cloud/run/v2;runb\006proto" + + "3" + }; + 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 ecc9703..d6fcd28 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,63 +72,70 @@ 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) {
       throw e.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 @@ -120,29 +144,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 { @@ -153,12 +177,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 @@ -167,30 +194,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 { @@ -201,6 +228,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
@@ -218,6 +247,7 @@ public java.lang.String getVersion() {
    * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -226,6 +256,7 @@ public int getMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -264,8 +294,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; @@ -275,19 +304,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; } @@ -310,97 +336,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.
@@ -408,21 +440,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()
@@ -430,16 +464,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();
@@ -453,9 +486,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
@@ -474,7 +507,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_;
@@ -486,38 +520,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;
@@ -568,18 +603,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; @@ -588,20 +625,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 { @@ -609,54 +647,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; @@ -664,19 +709,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; @@ -685,21 +732,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 { @@ -707,64 +755,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
@@ -782,6 +839,7 @@ public Builder setVersionBytes(
      * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -789,6 +847,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
@@ -806,16 +866,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
@@ -833,17 +896,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); } @@ -853,12 +917,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(); } @@ -867,16 +931,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; @@ -891,6 +955,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 7ab833e..a83f1bb 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,81 +70,90 @@ 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) { throw e.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; } @@ -143,31 +169,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 @@ -176,29 +208,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 { @@ -208,12 +240,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 @@ -221,22 +256,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
@@ -247,13 +287,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
@@ -261,6 +303,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 @@ -268,6 +311,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
@@ -275,16 +320,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
@@ -296,12 +344,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;
@@ -313,8 +362,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_);
     }
@@ -337,12 +385,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;
@@ -352,24 +402,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:
@@ -404,116 +451,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); } @@ -523,16 +577,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(); @@ -544,9 +597,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 @@ -590,38 +643,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; @@ -635,17 +689,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(); @@ -675,12 +732,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() { @@ -690,21 +747,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; @@ -713,20 +771,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 { @@ -734,68 +793,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 @@ -803,12 +875,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 @@ -826,6 +901,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
@@ -847,6 +924,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
@@ -854,8 +933,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();
@@ -866,6 +944,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
@@ -875,10 +955,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;
         }
@@ -893,6 +976,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
@@ -917,6 +1002,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
@@ -928,6 +1015,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
@@ -947,6 +1036,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
@@ -955,27 +1046,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
@@ -983,6 +1085,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 @@ -990,6 +1093,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
@@ -997,6 +1102,7 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1014,6 +1120,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
@@ -1036,6 +1144,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
@@ -1056,6 +1166,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
@@ -1066,10 +1178,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;
         }
@@ -1084,6 +1199,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
@@ -1109,6 +1226,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
@@ -1121,6 +1240,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
@@ -1141,6 +1262,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
@@ -1150,26 +1273,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);
     }
 
@@ -1179,12 +1308,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();
   }
@@ -1193,16 +1322,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;
@@ -1217,6 +1346,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 72%
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 80d67dd..fc02e02 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,58 +71,65 @@ 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) { throw e.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 @@ -114,29 +138,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 { @@ -147,6 +171,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
@@ -156,6 +182,7 @@ public java.lang.String getName() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ @java.lang.Override @@ -164,14 +191,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
@@ -181,16 +209,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 { @@ -199,6 +226,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +238,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_); } @@ -241,17 +268,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; } @@ -272,118 +297,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() @@ -391,16 +424,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +444,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 @@ -444,38 +476,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; @@ -523,18 +556,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; @@ -543,20 +578,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 { @@ -564,54 +600,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; @@ -619,6 +662,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
@@ -628,13 +673,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; @@ -643,6 +688,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
@@ -652,15 +699,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 { @@ -668,6 +714,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
@@ -677,20 +725,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
@@ -700,15 +750,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
@@ -718,23 +771,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); } @@ -744,12 +797,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(); } @@ -758,16 +811,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; @@ -782,6 +835,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 0493935..7bfcdf2 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,60 +74,67 @@ 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) {
       throw e.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
      * 
@@ -119,6 +143,8 @@ public enum VpcEgress */ VPC_EGRESS_UNSPECIFIED(0), /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -127,6 +153,8 @@ public enum VpcEgress */ ALL_TRAFFIC(1), /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -138,6 +166,8 @@ public enum VpcEgress ; /** + * + * *
      * Unspecified
      * 
@@ -146,6 +176,8 @@ public enum VpcEgress */ public static final int VPC_EGRESS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -154,6 +186,8 @@ public enum VpcEgress */ public static final int ALL_TRAFFIC_VALUE = 1; /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -162,7 +196,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( @@ -187,49 +220,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; @@ -249,12 +282,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 @@ -263,30 +299,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 { @@ -297,31 +333,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; @@ -333,8 +379,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_); } @@ -354,8 +399,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; @@ -365,15 +409,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; @@ -395,97 +438,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
@@ -495,21 +544,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()
@@ -517,16 +568,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();
@@ -538,9 +588,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
@@ -570,38 +620,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;
@@ -648,19 +699,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; @@ -669,21 +722,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 { @@ -691,57 +745,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; @@ -749,51 +810,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. */ @@ -801,28 +876,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); } @@ -832,12 +910,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(); } @@ -846,16 +924,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; @@ -870,6 +948,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